1
0
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:
J. Nick Koston
2025-11-06 13:32:51 -06:00
parent 57a88e8211
commit 047773e62f

View File

@@ -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;
} }