From ecb35a97bd917bed4e0d33d03d1b82083dc028da Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Sun, 23 Feb 2025 21:22:50 +0100 Subject: [PATCH] fix: update weight display logic to handle negative and specific weight cases --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 31f047f..53534fb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -122,7 +122,7 @@ void loop() { // Ausgabe der Waage auf Display if (pauseMainTask == 0 && weight != lastWeight && hasReadRfidTag == 0) { - (weight < 0) ? oledShowMessage("!! -1") : oledShowWeight(weight); + (weight < 0 || weight == 1) ? oledShowMessage("0") : oledShowWeight(weight); }