2 parents e57e65d + 4ed8c6e commit 886c759Copy full SHA for 886c759
1 file changed
src/common/foc_utils.cpp
@@ -75,7 +75,7 @@ __attribute__((weak)) float _atan2(float y, float x) {
75
76
// normalizing radian angle to [0,2PI]
77
__attribute__((weak)) float _normalizeAngle(float angle){
78
- float a = fmod(angle, _2PI);
+ float a = fmodf(angle, _2PI);
79
return a >= 0 ? a : (a + _2PI);
80
}
81
0 commit comments