X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/b9cf4815e5445db2d805117c90adaa1755c853cf..8154331da60ac08b0e2b09ca67008ec4a8c7698b:/Projects/Webserver/Lib/TELNETServerApp.c?ds=inline diff --git a/Projects/Webserver/Lib/TELNETServerApp.c b/Projects/Webserver/Lib/TELNETServerApp.c index 720f7d14c..7d8c907fe 100644 --- a/Projects/Webserver/Lib/TELNETServerApp.c +++ b/Projects/Webserver/Lib/TELNETServerApp.c @@ -38,15 +38,15 @@ #include "TELNETServerApp.h" /** Welcome message to send to a TELNET client when a connection is first made. */ -char PROGMEM WelcomeHeader[] = "********************************************\r\n" - "* LUFA uIP Webserver (TELNET) *\r\n" - "********************************************\r\n"; +const char PROGMEM WelcomeHeader[] = "********************************************\r\n" + "* LUFA uIP Webserver (TELNET) *\r\n" + "********************************************\r\n"; /** Main TELNET menu, giving the user the list of available commands they may issue */ -char PROGMEM TELNETMenu[] = "\r\n" - " Available Commands:\r\n" - " c) List Active TCP Connections\r\n" - "\r\nCommand>"; +const char PROGMEM TELNETMenu[] = "\r\n" + " Available Commands:\r\n" + " c) List Active TCP Connections\r\n" + "\r\nCommand>"; /** Initialization function for the simple HTTP webserver. */ void TELNETServerApp_Init(void) @@ -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;