Skip to content

Commit 886c759

Browse files
Merge pull request #521 from jaguilar/dev
foc_utils: Fix unintended double conversion.
2 parents e57e65d + 4ed8c6e commit 886c759

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/common/foc_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ __attribute__((weak)) float _atan2(float y, float x) {
7575

7676
// normalizing radian angle to [0,2PI]
7777
__attribute__((weak)) float _normalizeAngle(float angle){
78-
float a = fmod(angle, _2PI);
78+
float a = fmodf(angle, _2PI);
7979
return a >= 0 ? a : (a + _2PI);
8080
}
8181

0 commit comments

Comments
 (0)