From a4542245250d6ccc1d574c83a730aead5f6cb456 Mon Sep 17 00:00:00 2001 From: cerejo Date: Fri, 28 Oct 2016 18:06:47 +0100 Subject: [PATCH] initialize dhcpserver_task_handle = NULL 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; }