mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
Fix missing yield in uart causing watchdog timer resets in esp32 when blocking waiting on serial responses. (#1016)
This commit is contained in:
parent
ba1222eae4
commit
a2a83c5004
1 changed files with 1 additions and 0 deletions
|
@ -96,6 +96,7 @@ bool UARTComponent::check_read_timeout_(size_t len) {
|
||||||
ESP_LOGE(TAG, "Reading from UART timed out at byte %u!", this->available());
|
ESP_LOGE(TAG, "Reading from UART timed out at byte %u!", this->available());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
yield();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue