From 77b03472c6ce1a22ffd4ec456c3962b22a574593 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Thu, 17 Aug 2017 19:04:20 +0300 Subject: [PATCH] Set uart queue to NULL after free Fixes: https://github.com/espressif/arduino-esp32/issues/435 --- cores/esp32/esp32-hal-uart.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cores/esp32/esp32-hal-uart.c b/cores/esp32/esp32-hal-uart.c index 02999993..3f79f22a 100644 --- a/cores/esp32/esp32-hal-uart.c +++ b/cores/esp32/esp32-hal-uart.c @@ -226,6 +226,7 @@ void uartEnd(uart_t* uart) uint8_t c; while(xQueueReceive(uart->queue, &c, 0)); vQueueDelete(uart->queue); + uart->queue = NULL; } uart->dev->conf0.val = 0;