From a35f15eca5d8b135b88e02a7c3097da40cddc9c7 Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Sat, 30 Aug 2025 08:25:52 +0200 Subject: [PATCH] fix: call scale.tare() in setup after starting scale --- src/main.cpp | 1 + src/scale.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index fd12e8c..16fa7ba 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -59,6 +59,7 @@ void setup() { // Scale start_scale(touchSensorConnected); + scale.tare(); // WDT initialisieren mit 10 Sekunden Timeout bool panic = true; // Wenn true, löst ein WDT-Timeout einen System-Panik aus diff --git a/src/scale.cpp b/src/scale.cpp index 3ee71c6..f9d652e 100644 --- a/src/scale.cpp +++ b/src/scale.cpp @@ -122,8 +122,8 @@ void start_scale(bool touchSensorConnected) { } scale.set_scale(calibrationValue); - vTaskDelay(pdMS_TO_TICKS(5000)); - scale.tare(); + //vTaskDelay(pdMS_TO_TICKS(5000)); + //scale.tare(); // Display Gewicht oledShowWeight(0);