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:
parent
bfa3254d6c
commit
9491f3d100
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user