Skip to content

foc_utils: Fix unintended double conversion.#521

Merged
runger1101001 merged 1 commit into
simplefoc:devfrom
jaguilar:dev
May 18, 2026
Merged

foc_utils: Fix unintended double conversion.#521
runger1101001 merged 1 commit into
simplefoc:devfrom
jaguilar:dev

Conversation

@jaguilar
Copy link
Copy Markdown

@jaguilar jaguilar commented Apr 3, 2026

Description

fmod takes a double and returns a double, which requires two conversions that are expensive on many MCUs. fmodf is the correct function to call here.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Compilation only.

@runger1101001 runger1101001 added this to the 2.4.1_Release milestone May 18, 2026
@runger1101001 runger1101001 merged commit 886c759 into simplefoc:dev May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants