Fix TELNET server locking up if an invalid command was issued.

This commit is contained in:
Dean Camera 2010-02-03 13:08:37 +00:00
parent b9cf4815e5
commit 7d3ed40070
3 changed files with 7 additions and 19 deletions

View file

@ -106,7 +106,11 @@ void TELNETServerApp_Callback(void)
{
case 'c':
TELNETServerApp_DisplayTCPConnections();
break;
break;
default:
strcpy(AppData, "Invalid Command.\r\n");
uip_send(AppData, strlen(AppData));
break;
}
AppState->TELNETServer.NextState = TELNET_STATE_SendMenu;