fix: reduce delay in start_scale function and reset weight after tare
This commit is contained in:
@@ -257,8 +257,10 @@ void start_scale(bool touchSensorConnected) {
|
|||||||
// Display Gewicht
|
// Display Gewicht
|
||||||
oledShowWeight(0);
|
oledShowWeight(0);
|
||||||
|
|
||||||
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
vTaskDelay(500 / portTICK_PERIOD_MS);
|
||||||
scale.tare();
|
scale.tare();
|
||||||
|
vTaskDelay(500 / portTICK_PERIOD_MS);
|
||||||
|
weight = 0;
|
||||||
|
|
||||||
Serial.println("starte Scale Task");
|
Serial.println("starte Scale Task");
|
||||||
BaseType_t result = xTaskCreatePinnedToCore(
|
BaseType_t result = xTaskCreatePinnedToCore(
|
||||||
|
Reference in New Issue
Block a user