mirror of
https://github.com/esphome/esphome.git
synced 2025-11-18 15:55:46 +00:00
fixes for no fast connect yet
This commit is contained in:
@@ -895,7 +895,7 @@ bool WiFiComponent::load_fast_connect_settings_() {
|
|||||||
|
|
||||||
if (this->fast_connect_pref_.load(&fast_connect_save)) {
|
if (this->fast_connect_pref_.load(&fast_connect_save)) {
|
||||||
// Validate saved AP index
|
// Validate saved AP index
|
||||||
if (fast_connect_save.ap_index >= this->sta_.size()) {
|
if (static_cast<size_t>(fast_connect_save.ap_index) >= this->sta_.size()) {
|
||||||
ESP_LOGW(TAG, "Saved AP index out of bounds");
|
ESP_LOGW(TAG, "Saved AP index out of bounds");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user