mirror of
https://github.com/tugsi/Filaman.git
synced 2026-11-12 18:50:38 +01:00
fix: enhance weight display logic for negative values
This commit is contained in:
1 parent
98fce15ccc
commit
de67cdbff3
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user