diff --git a/esphome/components/modem/__init__.py b/esphome/components/modem/__init__.py index 3fe3fda6df..1ff505acbb 100644 --- a/esphome/components/modem/__init__.py +++ b/esphome/components/modem/__init__.py @@ -85,7 +85,7 @@ async def to_code(config): add_idf_sdkconfig_option("CONFIG_PPP_CHAP_SUPPORT", True) add_idf_sdkconfig_option("CONFIG_LWIP_PPP_VJ_HEADER_COMPRESSION", True) add_idf_sdkconfig_option("CONFIG_LWIP_PPP_NOTIFY_PHASE_SUPPORT", True) - add_idf_sdkconfig_option("CONFIG_UART_ISR_IN_IRAM", True) + # add_idf_sdkconfig_option("CONFIG_UART_ISR_IN_IRAM", True) cg.add_define("USE_MODEM") diff --git a/esphome/components/modem/modem_component.cpp b/esphome/components/modem/modem_component.cpp index 1cfa198fea..662e1a5696 100644 --- a/esphome/components/modem/modem_component.cpp +++ b/esphome/components/modem/modem_component.cpp @@ -256,6 +256,7 @@ void ModemComponent::loop() { switch (this->state_) { case ModemComponentState::STOPPED: + set_wdt(60); if (this->started_) { if (!this->modem_ready()) { ESP_LOGD(TAG, "Modem not responding. Trying to recover..."); @@ -279,6 +280,7 @@ void ModemComponent::loop() { this->start_connect_(); } } + set_wdt(CONFIG_TASK_WDT_TIMEOUT_S); break; case ModemComponentState::CONNECTING: if (!this->started_) {