From cca0bd9dbe4ca3a43fc83bbb495dbafc73f77a65 Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Mon, 1 Sep 2025 14:03:08 +0200 Subject: [PATCH] fix: reduce delay in start_scale function and reset weight after tare --- src/scale.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scale.cpp b/src/scale.cpp index a5519f1..9e2aa03 100644 --- a/src/scale.cpp +++ b/src/scale.cpp @@ -257,8 +257,10 @@ void start_scale(bool touchSensorConnected) { // Display Gewicht oledShowWeight(0); - vTaskDelay(1000 / portTICK_PERIOD_MS); + vTaskDelay(500 / portTICK_PERIOD_MS); scale.tare(); + vTaskDelay(500 / portTICK_PERIOD_MS); + weight = 0; Serial.println("starte Scale Task"); BaseType_t result = xTaskCreatePinnedToCore(