mirror of
https://github.com/esphome/esphome.git
synced 2025-11-19 00:05:43 +00:00
defensive to make bot happy
This commit is contained in:
@@ -840,7 +840,7 @@ void WiFiComponent::retry_connect() {
|
|||||||
this->trying_loaded_ap_ = false;
|
this->trying_loaded_ap_ = false;
|
||||||
this->selected_sta_index_ = 0; // Retry from the first configured AP
|
this->selected_sta_index_ = 0; // Retry from the first configured AP
|
||||||
this->reset_for_next_ap_attempt_();
|
this->reset_for_next_ap_attempt_();
|
||||||
} else if (this->selected_sta_index_ >= static_cast<int8_t>(this->sta_.size()) - 1) {
|
} else if (static_cast<size_t>(this->selected_sta_index_) >= this->sta_.size() - 1) {
|
||||||
// Exhausted all configured APs, restart adapter and cycle back to first
|
// Exhausted all configured APs, restart adapter and cycle back to first
|
||||||
// Restart clears any stuck WiFi driver state
|
// Restart clears any stuck WiFi driver state
|
||||||
// Each AP is tried with config data only (SSID + optional BSSID/channel if user configured them)
|
// Each AP is tried with config data only (SSID + optional BSSID/channel if user configured them)
|
||||||
|
|||||||
Reference in New Issue
Block a user