From b979b1d1417e4107164f5e1490697bf7ff30f338 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 20 Sep 2021 22:25:43 -0400 Subject: [PATCH] Log stepper position when returning to IDLE --- blinds.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blinds.ino b/blinds.ino index 420d9f8..763fa20 100644 --- a/blinds.ino +++ b/blinds.ino @@ -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);