]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS-Plus/FreeRTOS-Plus-CLI/FreeRTOS_CLI.c
Allow mutex type semaphores to be given from an interrupt (not a normal thing to...
[freertos] / FreeRTOS-Plus / FreeRTOS-Plus-CLI / FreeRTOS_CLI.c
index 05737f03e8986195b258e95f6225a2383146d588..13f584d72de34fa1163f560e2ba1080d8397fde0 100644 (file)
@@ -152,7 +152,7 @@ size_t xCommandStringLength;
                        pcRegisteredCommandString = pxCommand->pxCommandLineDefinition->pcCommand;\r
                        xCommandStringLength = strlen( ( const char * ) pcRegisteredCommandString );\r
 \r
-                       /* To ensure the string lengths match exactly, so as not to pick up \r
+                       /* To ensure the string lengths match exactly, so as not to pick up\r
                        a sub-string of a longer command, check the byte after the expected\r
                        end of the string is either the end of the string or a space before\r
                        a parameter. */\r
@@ -253,6 +253,11 @@ const int8_t *pcReturn = NULL;
                                        pcCommandString++;\r
                                }\r
 \r
+                               if( *pxParameterStringLength == 0 )\r
+                               {\r
+                                       pcReturn = NULL;\r
+                               }\r
+\r
                                break;\r
                        }\r
                }\r