Sfoglia il codice sorgente

Merge pull request #57 from xiangxistu/master

[fix] "dhcp_work" haven't be defined when use static ip address.
xiangxistu 4 anni fa
parent
commit
28692d020a
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/wiz.c

+ 2 - 2
src/wiz.c

@@ -60,8 +60,8 @@ static rt_timer_t  dns_tick_timer;
 
 #ifdef WIZ_USING_DHCP
 static rt_timer_t  dhcp_timer;
-static struct rt_work *dhcp_work = RT_NULL;
 #endif
+static struct rt_work *dhcp_work = RT_NULL;
 extern int wiz_recv_notice_cb(int socket);
 extern int wiz_closed_notice_cb(int socket);
 
@@ -251,7 +251,7 @@ static int wiz_chip_cfg_init(void)
         LOG_E("WIZCHIP initialize failed.");
         return -RT_ERROR;
     }
-    
+
 	struct wiz_NetTimeout_t net_timeout;
 	net_timeout.retry_cnt=5;
 	net_timeout.time_100us=20000;