fix: improve weight stability check before sending to API

This commit is contained in:
Manuel Weiser committed 2025-03-31 10:08:26 +02:00
1 parent a6a8c69aee
commit 836e48bde2
1 file changed
+1 -1
+1 -1
View File
@@ -190,7 +190,7 @@ void loop() {
}
// Prüfen ob das Gewicht gleich bleibt und dann senden
if (weight == lastWeight && weight > 5)
if (abs(weight - lastWeight) <= 2 && weight > 5)
{
weigthCouterToApi++;
}