From cea4237b75dd90b9bbad4f18b015b9a1c21ae585 Mon Sep 17 00:00:00 2001 From: Aadi Desai <21363892+supleed2@users.noreply.github.com> Date: Sun, 13 Jun 2021 23:33:49 +0100 Subject: [PATCH] Add waiting state to reference doc --- Control/ref/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Control/ref/command.cpp b/Control/ref/command.cpp index 570c8aa..9360b9a 100644 --- a/Control/ref/command.cpp +++ b/Control/ref/command.cpp @@ -14,7 +14,7 @@ void loop() { DynamicJsonDocument rdoc(1024); // receive doc, not sure how big this needs to be deserializeJson(rdoc, WebSocket); // Take JSON input from WebSocket - state = rdoc["st"]; // State: -1 = Error, 0 = Idle, 1 = Moving, 2 = Charging + state = rdoc["st"]; // State: -1 = Error, 0 = Idle, 1 = Moving, 2 = Charging, 3 = Waiting batteryVoltage = rdoc["bV"]; batteryLevel = rdoc["bL"]; batteryCycles = rdoc["bC"];