initialize dhcpserver_task_handle = NULL (#257)

corrert error printf "OTA TFTP" to "DHCP Server Error"
This commit is contained in:
DanielCerejo 2016-10-30 09:26:29 +00:00 committed by sheinz
parent 5a14ab31e4
commit 8ef476c71f

View file

@ -49,7 +49,7 @@ typedef struct {
/* Only one DHCP server task can run at once, so we have global state /* Only one DHCP server task can run at once, so we have global state
for it. for it.
*/ */
static xTaskHandle dhcpserver_task_handle; static xTaskHandle dhcpserver_task_handle=NULL;
static server_state_t *state; static server_state_t *state;
/* Handlers for various kinds of incoming DHCP messages */ /* Handlers for various kinds of incoming DHCP messages */
@ -108,7 +108,7 @@ static void dhcpserver_task(void *pxParameter)
state->nc = netconn_new (NETCONN_UDP); state->nc = netconn_new (NETCONN_UDP);
if(!state->nc) { if(!state->nc) {
printf("OTA TFTP: Failed to allocate socket.\r\n"); printf("DHCP Server Error: Failed to allocate socket.\r\n");
return; return;
} }