Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
012f91851e | |||
9ed3c70c01 |
@ -180,7 +180,8 @@ void loop() {
|
||||
lastWeightReadTime = currentMillis;
|
||||
|
||||
// Prüfen ob die Waage korrekt genullt ist
|
||||
if (autoTare && (weight > 0 && weight < 5) || weight < 0)
|
||||
// Abweichung von 2g ignorieren
|
||||
if (autoTare && (weight > 2 && weight < 7) || weight < -2)
|
||||
{
|
||||
scale_tare_counter++;
|
||||
}
|
||||
@ -190,7 +191,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++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user