From 8ef476c71ffa89c2991cdd715ab47b3d21736929 Mon Sep 17 00:00:00 2001 From: DanielCerejo Date: Sun, 30 Oct 2016 09:26:29 +0000 Subject: [PATCH] initialize dhcpserver_task_handle = NULL (#257) corrert error printf "OTA TFTP" to "DHCP Server Error" --- extras/dhcpserver/dhcpserver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/dhcpserver/dhcpserver.c b/extras/dhcpserver/dhcpserver.c index 82ccfd1..f1e8f66 100644 --- a/extras/dhcpserver/dhcpserver.c +++ b/extras/dhcpserver/dhcpserver.c @@ -49,7 +49,7 @@ typedef struct { /* Only one DHCP server task can run at once, so we have global state for it. */ -static xTaskHandle dhcpserver_task_handle; +static xTaskHandle dhcpserver_task_handle=NULL; static server_state_t *state; /* Handlers for various kinds of incoming DHCP messages */ @@ -108,7 +108,7 @@ static void dhcpserver_task(void *pxParameter) state->nc = netconn_new (NETCONN_UDP); if(!state->nc) { - printf("OTA TFTP: Failed to allocate socket.\r\n"); + printf("DHCP Server Error: Failed to allocate socket.\r\n"); return; }