1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 14:18:14 +00:00

fixing successful retry behaviour

This commit is contained in:
bJ3h2-4-8 2025-02-24 13:44:58 +01:00
parent bfa3254d6c
commit 9491f3d100

View File

@ -113,13 +113,14 @@ PIDAutotuner::PIDAutotuneResult PIDAutotuner::update(float setpoint, float proce
if (this->enough_data_phase_ == 0) {
this->enough_data_phase_ = phase;
} else if (phase - this->enough_data_phase_ <= 6) {
}
//
if (phase - this->enough_data_phase_ <= 6) {
// keep trying for at least 6 more phases
return res;
} else {
}
// proceed to calculating PID parameters
// warning will be shown in "Checks" section
}
}
ESP_LOGI(TAG, "%s: PID Autotune finished!", this->id_.c_str());