Skip to content
Snippets Groups Projects
Verified Commit b106408a authored by Thomas Lambert's avatar Thomas Lambert :helicopter:
Browse files

fix(control): prevent issues with wrong inputs

parent 02684b0f
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,7 @@ void loop() {
if (gMode == "SERIAL" and Serial.available()) {
float input = Serial.parseFloat();
if (input == 0) {
if (input <= 0) {
StopMotor(gEsc_val);
} else {
gEsc_val = FreqToEsc(input);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment