micropython: fix bug

This commit is contained in:
KY-zhang-X
2022-10-12 13:58:50 +08:00
parent 3e4ceb8afe
commit ed310f51bf
3 changed files with 8 additions and 6 deletions

View File

@@ -246,10 +246,10 @@ STATIC mp_obj_t esp8266_make_new(const mp_obj_type_t *type, size_t n_args, size_
esp8266_obj.uart = uart;
esp8266_obj.init = 1;
mod_network_register_nic(MP_OBJ_FROM_PTR(&esp8266_obj));
}
mod_network_register_nic(MP_OBJ_FROM_PTR(&esp8266_obj));
return MP_OBJ_FROM_PTR(&esp8266_obj);
}