Added ENABLE_TELNET_SERVER compile time option to the Webserver project to disable the TELNET server if desired.
Change over static strings in the Webserver project to use PROGMEM where possible.
This commit is contained in:
parent
92418433a5
commit
aca7863350
8 changed files with 43 additions and 22 deletions
|
@ -80,7 +80,9 @@ void uIPManagement_Init(void)
|
|||
HTTPServerApp_Init();
|
||||
|
||||
/* TELNET Server Initialization */
|
||||
#if defined(ENABLE_TELNET_SERVER)
|
||||
TELNETServerApp_Init();
|
||||
#endif
|
||||
}
|
||||
|
||||
/** uIP Management function. This function manages the uIP stack when called while an RNDIS device has been
|
||||
|
@ -106,9 +108,11 @@ void uIPManagement_TCPCallback(void)
|
|||
case HTONS(HTTP_SERVER_PORT):
|
||||
HTTPServerApp_Callback();
|
||||
break;
|
||||
#if defined(ENABLE_TELNET_SERVER)
|
||||
case HTONS(TELNET_SERVER_PORT):
|
||||
TELNETServerApp_Callback();
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue