Set uart queue to NULL after free

Fixes: https://github.com/espressif/arduino-esp32/issues/435
This commit is contained in:
me-no-dev 2017-08-17 19:04:20 +03:00
parent 7d643df1ed
commit 77b03472c6

View File

@ -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;