initialize dhcpserver_task_handle = NULL (#257)
corrert error printf "OTA TFTP" to "DHCP Server Error"
This commit is contained in:
		
							parent
							
								
									5a14ab31e4
								
							
						
					
					
						commit
						8ef476c71f
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue