fix: improve weight stability check before sending to API
This commit is contained in:
parent
e23f3a2151
commit
9ed3c70c01
@ -190,7 +190,7 @@ void loop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Prüfen ob das Gewicht gleich bleibt und dann senden
|
// Prüfen ob das Gewicht gleich bleibt und dann senden
|
||||||
if (weight == lastWeight && weight > 5)
|
if (abs(weight - lastWeight) <= 2 && weight > 5)
|
||||||
{
|
{
|
||||||
weigthCouterToApi++;
|
weigthCouterToApi++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user