From 012f91851ebb331c972247190687b4b202d2f0e2 Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Mon, 31 Mar 2025 10:59:54 +0200 Subject: [PATCH] fix: adjust tare weight tolerance to ignore deviations of 2g --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index d30d032..01763d4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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++; }