Skip to content

Commit 5458df0

Browse files
authored
Fixes Serial.end() hanging on ESP32-S2 (#5434)
Fixes: #5429
1 parent e12d8c8 commit 5458df0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: cores/esp32/esp32-hal-uart.c

+2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ static void uartEnableInterrupt(uart_t* uart, uint8_t rxfifo_full_thrhd)
164164
static void uartDisableInterrupt(uart_t* uart)
165165
{
166166
UART_MUTEX_LOCK();
167+
#if CONFIG_IDF_TARGET_ESP32
167168
uart->dev->conf1.val = 0;
169+
#endif
168170
uart->dev->int_ena.val = 0;
169171
uart->dev->int_clr.val = 0xffffffff;
170172

0 commit comments

Comments
 (0)