fix: call scale.tare() in setup after starting scale

This commit is contained in:
2025-08-30 08:25:52 +02:00
parent f28b34e427
commit a35f15eca5
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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);