Allow position replay on lost connection

This commit is contained in:
osiu97
2026-07-08 19:45:14 +02:00
parent 80e9a471c3
commit 136ef8b721
4 changed files with 20 additions and 6 deletions
+2 -1
View File
@@ -220,7 +220,8 @@ void sendPosition() {
if (!bleConnected || !pStatusChar)
return;
String pos = "P:" + String(stepper1.currentPosition()) + "," +
String(stepper2.currentPosition());
String(stepper2.currentPosition()) + "," +
String(motorsDisabled ? 0 : 1);
pStatusChar->setValue(pos.c_str());
pStatusChar->notify();
Serial.printf("[POS] %s\n", pos.c_str());