disable CONFIG_UART_ISR_IN_IRAM

This commit is contained in:
oarcher 2024-07-17 14:13:32 +02:00
parent 7e09c54490
commit 671c71c406
2 changed files with 3 additions and 1 deletions

View file

@ -85,7 +85,7 @@ async def to_code(config):
add_idf_sdkconfig_option("CONFIG_PPP_CHAP_SUPPORT", True) 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_VJ_HEADER_COMPRESSION", True)
add_idf_sdkconfig_option("CONFIG_LWIP_PPP_NOTIFY_PHASE_SUPPORT", 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") cg.add_define("USE_MODEM")

View file

@ -256,6 +256,7 @@ void ModemComponent::loop() {
switch (this->state_) { switch (this->state_) {
case ModemComponentState::STOPPED: case ModemComponentState::STOPPED:
set_wdt(60);
if (this->started_) { if (this->started_) {
if (!this->modem_ready()) { if (!this->modem_ready()) {
ESP_LOGD(TAG, "Modem not responding. Trying to recover..."); ESP_LOGD(TAG, "Modem not responding. Trying to recover...");
@ -279,6 +280,7 @@ void ModemComponent::loop() {
this->start_connect_(); this->start_connect_();
} }
} }
set_wdt(CONFIG_TASK_WDT_TIMEOUT_S);
break; break;
case ModemComponentState::CONNECTING: case ModemComponentState::CONNECTING:
if (!this->started_) { if (!this->started_) {