Skip to content

Commit 6d93dca

Browse files
committed
Hall typo in cpp
1 parent 6790aa9 commit 6d93dca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sensors/HallSensor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ float HallSensor::getVelocity(){
118118
} else {
119119
float vel = direction * (_2PI / (float)cpr) / (pulse_diff / 1000000.0f);
120120
// quick fix https://github.com/simplefoc/Arduino-FOC/issues/192
121-
if(vel < -velocity_max || vel > velocity_max) vel = 0f; //if velocity is out of range then make it zero
121+
if(vel < -velocity_max || vel > velocity_max) vel = 0.0f; //if velocity is out of range then make it zero
122122
return vel;
123123
}
124124

0 commit comments

Comments
 (0)