realign timeouts

This commit is contained in:
J. Nick Koston
2025-11-18 09:26:53 -06:00
parent 407f07a643
commit 17b72061ad
@@ -503,6 +503,7 @@ void WiFiComponent::loop() {
#ifdef USE_IMPROV
if (esp32_improv::global_improv_component != nullptr && !esp32_improv::global_improv_component->is_active()) {
if (now - this->last_connected_ > esp32_improv::global_improv_component->get_wifi_timeout()) {
ESP_LOGI(TAG, "Starting Improv");
if (this->wifi_mode_(true, {}))
esp32_improv::global_improv_component->start();
}