[chronojump/FS-LCD-Menu] Fixed battery level not showed with battery off



commit c9fbf01e98c17f3de77aa1558b04c8c8e08e6fb0
Author: Xavier Padullés <x padulles gmail com>
Date:   Thu Dec 2 18:18:01 2021 +0100

    Fixed battery level not showed with battery off

 arduino/ForceSensorLCD/ForceSensorLCD.ino | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/arduino/ForceSensorLCD/ForceSensorLCD.ino b/arduino/ForceSensorLCD/ForceSensorLCD.ino
index b242fb2b7..7f14ed911 100644
--- a/arduino/ForceSensorLCD/ForceSensorLCD.ino
+++ b/arduino/ForceSensorLCD/ForceSensorLCD.ino
@@ -731,7 +731,6 @@ void showCalibrateMenu(String weight) {
 
 void showBatteryLevel() {
     float sensorValue = analogRead(A0);
-    Serial.println(sensorValue);
     lcd.setCursor(13, 0);
     if (sensorValue >= 788) {
       lcd.createChar(5, battery5);
@@ -755,7 +754,7 @@ void showBatteryLevel() {
       lcd.write(byte(1));
     } else if (sensorValue <= 701) {
       lcd.createChar(0, battery0);
-      lcd.setCursor(0, 0);
+      lcd.setCursor(15, 0);
       lcd.write(byte (0));
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]