fix: reduce delay in start_scale function and reset weight after tare
This commit is contained in:
1 parent
818094c36e
commit
cca0bd9dbe
1 file changed
+3
-1
+3
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user