From a16c05287ea3136550fc795fb223f44de173e9f5 Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Sun, 23 Feb 2025 21:23:46 +0100 Subject: [PATCH] fix: adjust weight display logic to handle cases for weight less than 2 --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 53534fb..0265cd3 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 || weight == 1) ? oledShowMessage("0") : oledShowWeight(weight); + (weight < 2) ? oledShowMessage("0") : oledShowWeight(weight); }