From cd73229ec451935bf20ae84814955bf8266505f2 Mon Sep 17 00:00:00 2001 From: latisen Date: Thu, 22 Jun 2017 23:36:50 +0200 Subject: [PATCH] Added display-update to charging and docking state to make the display show the correct information all the time. --- Liam/Liam.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Liam/Liam.ino b/Liam/Liam.ino index 7fa8fa9..c46b886 100644 --- a/Liam/Liam.ino +++ b/Liam/Liam.ino @@ -412,7 +412,8 @@ void loop() { //----------------------- DOCKING ----------------------------- case DOCKING: - + Battery.updateSOC(); + Display.update(); //Make the wheel motors extra responsive leftMotor.setSmoothness(10); rightMotor.setSmoothness(10); @@ -460,6 +461,8 @@ void loop() { //----------------------- CHARGING ---------------------------- case CHARGING: + Battery.updateSOC(); + Display.update(); // restore wheelmotor smoothness leftMotor.setSmoothness(WHEELMOTOR_SMOOTHNESS); rightMotor.setSmoothness(WHEELMOTOR_SMOOTHNESS);