fix: adjust weight display logic to handle cases for weight less than 2
This commit is contained in:
parent
ecb35a97bd
commit
a16c05287e
@ -122,7 +122,7 @@ void loop() {
|
|||||||
// Ausgabe der Waage auf Display
|
// Ausgabe der Waage auf Display
|
||||||
if (pauseMainTask == 0 && weight != lastWeight && hasReadRfidTag == 0)
|
if (pauseMainTask == 0 && weight != lastWeight && hasReadRfidTag == 0)
|
||||||
{
|
{
|
||||||
(weight < 0 || weight == 1) ? oledShowMessage("0") : oledShowWeight(weight);
|
(weight < 2) ? oledShowMessage("0") : oledShowWeight(weight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user