fix: update weight display logic to handle negative and specific weight cases

This commit is contained in:
Manuel Weiser 2025-02-23 21:22:50 +01:00
parent ba968611ec
commit ecb35a97bd

View File

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