mirror of
https://github.com/esphome/esphome.git
synced 2025-11-17 15:26:01 +00:00
cleanup
This commit is contained in:
@@ -1219,12 +1219,9 @@ void WiFiComponent::retry_connect() {
|
|||||||
|
|
||||||
this->error_from_callback_ = false;
|
this->error_from_callback_ = false;
|
||||||
|
|
||||||
// Execute phase-specific connection logic
|
|
||||||
if (this->state_ == WIFI_COMPONENT_STATE_STA_CONNECTING) {
|
if (this->state_ == WIFI_COMPONENT_STATE_STA_CONNECTING) {
|
||||||
yield();
|
yield();
|
||||||
this->state_ = WIFI_COMPONENT_STATE_STA_CONNECTING_2;
|
this->state_ = WIFI_COMPONENT_STATE_STA_CONNECTING_2;
|
||||||
|
|
||||||
// Build connection params based on current phase
|
|
||||||
WiFiAP params = this->build_params_for_current_phase_();
|
WiFiAP params = this->build_params_for_current_phase_();
|
||||||
this->start_connecting(params, true);
|
this->start_connecting(params, true);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user