Revert "fix return value of ODriveArduino::run_state()"

This reverts commit 392781c33d.
This commit is contained in:
Oskar Weigl
2020-10-09 16:38:55 -07:00
parent 0b62d38824
commit 573aa96ba5

View File

@@ -66,7 +66,7 @@ bool ODriveArduino::run_state(int axis, int requested_state, bool wait) {
do {
delay(100);
serial_ << "r axis" << axis << ".current_state\n";
} while (readInt() != requested_state && --timeout_ctr > 0);
} while (readInt() != AXIS_STATE_IDLE && --timeout_ctr > 0);
}
return timeout_ctr > 0;