From f6151f2f9c0567526eee1536265c53efad5248c7 Mon Sep 17 00:00:00 2001 From: Admar Schoonen Date: Fri, 20 Mar 2020 10:07:56 +0100 Subject: [PATCH] Fixed bug where mutex would not be unlocked --- 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 8ec1fe6f7d1..e65042634db 100644 --- a/cores/esp32/esp32-hal-uart.c +++ b/cores/esp32/esp32-hal-uart.c @@ -257,6 +257,7 @@ size_t uartResizeRxBuffer(uart_t * uart, size_t new_size) { vQueueDelete(uart->queue); uart->queue = xQueueCreate(new_size, sizeof(uint8_t)); if(uart->queue == NULL) { + UART_MUTEX_UNLOCK(); return NULL; } }