Fixes Serial.end() hanging on ESP32-S2 (#5434)

Fixes: #5429
This commit is contained in:
Rodrigo Garcia 2021-07-21 11:02:06 -03:00 committed by GitHub
parent e12d8c8ff1
commit 5458df0a54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,7 +164,9 @@ static void uartEnableInterrupt(uart_t* uart, uint8_t rxfifo_full_thrhd)
static void uartDisableInterrupt(uart_t* uart)
{
UART_MUTEX_LOCK();
#if CONFIG_IDF_TARGET_ESP32
uart->dev->conf1.val = 0;
#endif
uart->dev->int_ena.val = 0;
uart->dev->int_clr.val = 0xffffffff;