refactor: improve auto tare logic and reset conditions in scale handling

This commit is contained in:
Manuel Weiser committed 2025-09-03 15:06:31 +02:00
1 parent f5a1debd7d
commit 043c2d4fa8
2 files changed
+14 -22

No files matched your search

-11
View File
@@ -197,17 +197,6 @@ void loop() {
{
lastWeightReadTime = currentMillis;
// Prüfen ob die Waage korrekt genullt ist
// Abweichung von 2g ignorieren
if (autoTare && (weight > 2 && weight < 7) || weight < -2)
{
scale_tare_counter++;
}
else
{
scale_tare_counter = 0;
}
// Prüfen ob das Gewicht gleich bleibt und dann senden
if (abs(weight - lastWeight) <= 2 && weight > 5)
{