fix: enhance weight display logic for negative values

This commit is contained in:
Manuel Weiser 2025-02-24 12:28:18 +01:00
parent 98fce15ccc
commit de67cdbff3

View File

@ -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);
}