Log stepper position when returning to IDLE
This commit is contained in:
@@ -80,7 +80,9 @@ void updateState(int newState) {
|
|||||||
state = newState;
|
state = newState;
|
||||||
|
|
||||||
if(newState == IDLE) {
|
if(newState == IDLE) {
|
||||||
Serial.println("Transitioning to idle");
|
Serial.print("Transitioning to idle (");
|
||||||
|
Serial.print(stepper.currentPosition());
|
||||||
|
Serial.println(")");
|
||||||
} else {
|
} else {
|
||||||
Serial.print("Moving ");
|
Serial.print("Moving ");
|
||||||
Serial.print(previousState);
|
Serial.print(previousState);
|
||||||
|
|||||||
Reference in New Issue
Block a user