Log stepper position when returning to IDLE
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user