From 126953f69039e72863f760e8df931773efb29e3b Mon Sep 17 00:00:00 2001 From: jupfi Date: Fri, 8 Dec 2023 08:17:56 +0100 Subject: [PATCH] Added position update to stepper movement. --- src/commands/MoveStepper.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/MoveStepper.cpp b/src/commands/MoveStepper.cpp index cd9cf80..97a342e 100644 --- a/src/commands/MoveStepper.cpp +++ b/src/commands/MoveStepper.cpp @@ -29,6 +29,10 @@ void MoveStepper::printResult() { // Print Info confirmation printInfo("Fnished moving stepper"); + uint32_t tuning_position = tuner.STEPPER.currentPosition(); + uint32_t matching_position = matcher.STEPPER.currentPosition(); + String position = "p" + String(tuning_position) + "m" + String(matching_position); + Serial.println(position); } void MoveStepper::printHelp()