Răsfoiți Sursa

【完善】修复代码中的警告信息

SummerGift 6 ani în urmă
părinte
comite
bcb1154bdf
1 a modificat fișierele cu 0 adăugiri și 4 ștergeri
  1. 0 4
      port/network_wlan.c

+ 0 - 4
port/network_wlan.c

@@ -132,8 +132,6 @@ STATIC mp_obj_t wlan_active(size_t n_args, const mp_obj_t *args) {
     {
     {
         return mp_obj_new_bool(rt_wlan_get_mode("wlan1") == RT_WLAN_AP);
         return mp_obj_new_bool(rt_wlan_get_mode("wlan1") == RT_WLAN_AP);
     }
     }
-    
-    return mp_const_none;
 }
 }
 STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(wlan_active_obj, 1, 2, wlan_active);
 STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(wlan_active_obj, 1, 2, wlan_active);
 
 
@@ -343,8 +341,6 @@ STATIC mp_obj_t wlan_ifconfig(size_t n_args, const mp_obj_t *args) {
     {
     {
         // set
         // set
         mp_obj_t *items;
         mp_obj_t *items;
-        bool restart_dhcp_server = false;
-
         uint8_t ip_addr[4];
         uint8_t ip_addr[4];
         uint8_t netmask[4];
         uint8_t netmask[4];
         uint8_t gw[4];
         uint8_t gw[4];