From 0b5cd0866590b63346b95464a45186b74d35f916 Mon Sep 17 00:00:00 2001 From: dougwfoster <154472309+dougwfoster@users.noreply.github.com> Date: Mon, 8 Jan 2024 08:38:49 -0600 Subject: [PATCH] Improvement to UARTCommandConsole.c (FreeRTOS#548) (#1147) - Removed the function scope 'xPort' variable within FreeRTOS+CLI task in order for task to use the static file scope 'xPort' variable. - Added a prototype of vOutputString in UARTCommandConsole.c --- .../Demo/Common/FreeRTOS_Plus_CLI_Demos/UARTCommandConsole.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_CLI_Demos/UARTCommandConsole.c b/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_CLI_Demos/UARTCommandConsole.c index 5249a0cad..4b5c0c54d 100644 --- a/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_CLI_Demos/UARTCommandConsole.c +++ b/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_CLI_Demos/UARTCommandConsole.c @@ -69,6 +69,7 @@ static void prvUARTCommandConsoleTask( void * pvParameters ); void vUARTCommandConsoleStart( uint16_t usStackSize, UBaseType_t uxPriority ); +void vOutputString( const char * const pcMessage ); /*-----------------------------------------------------------*/ @@ -110,7 +111,6 @@ static void prvUARTCommandConsoleTask( void * pvParameters ) char * pcOutputString; static char cInputString[ cmdMAX_INPUT_SIZE ], cLastInputString[ cmdMAX_INPUT_SIZE ]; BaseType_t xReturned; - xComPortHandle xPort; ( void ) pvParameters;