From a2a83c5004dfe49b179cf45788c1673951f3a679 Mon Sep 17 00:00:00 2001 From: C W Date: Tue, 28 Apr 2020 08:22:33 -0700 Subject: [PATCH] Fix missing yield in uart causing watchdog timer resets in esp32 when blocking waiting on serial responses. (#1016) --- esphome/components/uart/uart.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/uart/uart.cpp b/esphome/components/uart/uart.cpp index 205e9e2300..08fc0a326e 100644 --- a/esphome/components/uart/uart.cpp +++ b/esphome/components/uart/uart.cpp @@ -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()); return false; } + yield(); } return true; }