Set uart queue to NULL after free
Fixes: https://github.com/espressif/arduino-esp32/issues/435
This commit is contained in:
parent
7d643df1ed
commit
77b03472c6
@ -226,6 +226,7 @@ void uartEnd(uart_t* uart)
|
|||||||
uint8_t c;
|
uint8_t c;
|
||||||
while(xQueueReceive(uart->queue, &c, 0));
|
while(xQueueReceive(uart->queue, &c, 0));
|
||||||
vQueueDelete(uart->queue);
|
vQueueDelete(uart->queue);
|
||||||
|
uart->queue = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
uart->dev->conf0.val = 0;
|
uart->dev->conf0.val = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user