Skip to content

Commit 77b0347

Browse files
committed
Set uart queue to NULL after free
Fixes: espressif#435
1 parent 7d643df commit 77b0347

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/esp32/esp32-hal-uart.c

+1
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ void uartEnd(uart_t* uart)
226226
uint8_t c;
227227
while(xQueueReceive(uart->queue, &c, 0));
228228
vQueueDelete(uart->queue);
229+
uart->queue = NULL;
229230
}
230231

231232
uart->dev->conf0.val = 0;

0 commit comments

Comments
 (0)