refactor: remove redundant tare calls in setup and start_scale functions
This commit is contained in:
@@ -250,7 +250,6 @@ void start_scale(bool touchSensorConnected) {
|
||||
|
||||
scale.set_scale(calibrationValue);
|
||||
//vTaskDelay(pdMS_TO_TICKS(5000));
|
||||
//scale.tare();
|
||||
|
||||
// Initialize weight stabilization filter
|
||||
resetWeightFilter();
|
||||
@@ -258,6 +257,9 @@ void start_scale(bool touchSensorConnected) {
|
||||
// Display Gewicht
|
||||
oledShowWeight(0);
|
||||
|
||||
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
||||
scale.tare();
|
||||
|
||||
Serial.println("starte Scale Task");
|
||||
BaseType_t result = xTaskCreatePinnedToCore(
|
||||
scale_loop, /* Function to implement the task */
|
||||
|
Reference in New Issue
Block a user