Эх сурвалжийг харах

Merge pull request #106 from SummerGGift/723

【修复】编译错误
朱天龙 (Armink) 6 жил өмнө
parent
commit
f86e04b9d5

+ 2 - 2
port/modules/modnetwork_wlan.c

@@ -280,7 +280,7 @@ void wlan_station_scan(void)
     }
     else
     {
-        mp_printf(&mp_plat_print, ("wifi scan result is null\n");
+        mp_printf(&mp_plat_print, ("wifi scan result is null\n"));
         *wlan_scan_list = MP_OBJ_NULL;
     }
 }
@@ -323,7 +323,7 @@ STATIC mp_obj_t wlan_ifconfig(size_t n_args, const mp_obj_t *args) {
     struct netdev *netdev = netdev_default;
     if (netdev == RT_NULL)
     {
-        mp_printf(&mp_plat_print, ("not find wlan interface device.\n");
+        mp_printf(&mp_plat_print, ("not find wlan interface device.\n"));
         return MP_OBJ_NEW_SMALL_INT(-1);
     }
 

+ 1 - 1
port/mpputsnport.c

@@ -51,7 +51,7 @@ void mp_putsn_init(void) {
     {/* register dummy console device */
 #ifdef RT_USING_DEVICE_OPS
         static struct rt_device_ops _ops = {0};
-        dummy_console.ops = &_ops
+        dummy_console.ops = &_ops;
 #endif
 
         dummy_console.type = RT_Device_Class_Char;