File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -440,11 +440,11 @@ STATIC mp_obj_t esp_status(mp_obj_t self_in) {
440
440
441
441
STATIC MP_DEFINE_CONST_FUN_OBJ_1 (esp_status_obj , esp_status );
442
442
443
- STATIC mp_obj_t lan_status (mp_obj_t self_in ) {
443
+ STATIC mp_obj_t lan_isconnected (mp_obj_t self_in ) {
444
444
lan_if_obj_t * self = MP_OBJ_TO_PTR (self_in );
445
445
return self -> link_func () ? mp_const_true : mp_const_false ;
446
446
}
447
- STATIC MP_DEFINE_CONST_FUN_OBJ_1 (lan_status_obj , lan_status );
447
+ STATIC MP_DEFINE_CONST_FUN_OBJ_1 (lan_isconnected_obj , lan_isconnected );
448
448
449
449
STATIC mp_obj_t esp_scan (mp_obj_t self_in ) {
450
450
// check that STA mode is active
@@ -696,7 +696,8 @@ const mp_obj_type_t wlan_if_type = {
696
696
697
697
STATIC const mp_map_elem_t lan_if_locals_dict_table [] = {
698
698
{ MP_OBJ_NEW_QSTR (MP_QSTR_active ), (mp_obj_t )& lan_active_obj },
699
- { MP_OBJ_NEW_QSTR (MP_QSTR_status ), (mp_obj_t )& lan_status_obj },
699
+ { MP_OBJ_NEW_QSTR (MP_QSTR_isconnected ), (mp_obj_t )& lan_isconnected_obj },
700
+ { MP_OBJ_NEW_QSTR (MP_QSTR_status ), (mp_obj_t )& esp_status_obj },
700
701
{ MP_OBJ_NEW_QSTR (MP_QSTR_ifconfig ), (mp_obj_t )& esp_ifconfig_obj },
701
702
};
702
703
You can’t perform that action at this time.
0 commit comments