From 2f9d0a2a70da7a72f354d50fc4e058cf30a2cd9a Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 4 Apr 2023 12:21:58 +0200 Subject: [PATCH] esp32: fix build --- port/esp32/components/btstack/btstack_stdio_esp32.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/port/esp32/components/btstack/btstack_stdio_esp32.c b/port/esp32/components/btstack/btstack_stdio_esp32.c index 78a2260bf..a26402a2f 100644 --- a/port/esp32/components/btstack/btstack_stdio_esp32.c +++ b/port/esp32/components/btstack/btstack_stdio_esp32.c @@ -79,6 +79,8 @@ static void (*stdin_handler)(char c); #define TX_BUF_SIZE (4096) static QueueHandle_t uart_queue = NULL; +static bool btstack_stdio_initialized; + static void btstack_stdio_process(void *context); static btstack_context_callback_registration_t stdio_callback_context = { @@ -191,6 +193,8 @@ void btstack_stdio_init() { //Create a task to block on UART RX xTaskCreate(btstack_stdio_task, "btstack_stdio", 2048, NULL, 12, NULL); + + btstack_stdio_initialized = true; } void btstack_stdin_setup(void (*handler)(char c)){