From bbdf49d9a53933472924ef5b7e5c400b814b52ed Mon Sep 17 00:00:00 2001 From: "Shellever.IDX" Date: Fri, 29 Nov 2024 17:40:26 +0800 Subject: [PATCH] Fix commands exception when __USE_SERIAL_CONSOLE__ disabled --- main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.c b/main.c index 830f648..c612fa2 100644 --- a/main.c +++ b/main.c @@ -2659,6 +2659,10 @@ static bool shell_check_connect(void){ // Init shell I/O connection over USB static void shell_init_connection(void){ +/* + * Init shell thread object (need for switch threads) + */ + osalThreadQueueObjectInit(&shell_thread); /* * Initializes and start serial-over-USB CDC driver SDU1, connected to USBD1 */