From de67cdbff3d90f5cd6566b359d9868833e09c07f Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Mon, 24 Feb 2025 12:28:18 +0100 Subject: [PATCH] fix: enhance weight display logic for negative values --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 0265cd3..d089ad6 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 < 2) ? oledShowMessage("0") : oledShowWeight(weight); + (weight < 2) ? ((weight < -2) ? oledShowMessage("!! -0") : oledShowWeight(0)) : oledShowWeight(weight); }