Log stepper position when returning to IDLE

This commit is contained in:
Cameron
2021-09-20 22:25:43 -04:00
parent 4a2d216279
commit b979b1d141

View File

@@ -80,7 +80,9 @@ void updateState(int newState) {
state = newState;
if(newState == IDLE) {
Serial.println("Transitioning to idle");
Serial.print("Transitioning to idle (");
Serial.print(stepper.currentPosition());
Serial.println(")");
} else {
Serial.print("Moving ");
Serial.print(previousState);