summaryrefslogtreecommitdiffstatshomepage
path: root/stm/pybwlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm/pybwlan.c')
-rw-r--r--stm/pybwlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/pybwlan.c b/stm/pybwlan.c
index 6988f1c848..8da7bb937b 100644
--- a/stm/pybwlan.c
+++ b/stm/pybwlan.c
@@ -74,7 +74,7 @@ mp_obj_t pyb_wlan_get_ip(void) {
return mp_const_none;
}
- mp_obj_t data = mp_obj_new_class(mp_map_new(MP_MAP_QSTR, 0)); // TODO should this be an instance of a class?
+ mp_obj_t data = mp_obj_new_class(mp_map_new(0)); // TODO should this be an instance of a class?
decode_addr_and_store(data, qstr_from_str_static("ip"), &ipconfig.aucIP[0], 4);
decode_addr_and_store(data, qstr_from_str_static("subnet"), &ipconfig.aucSubnetMask[0], 4);
decode_addr_and_store(data, qstr_from_str_static("gateway"), &ipconfig.aucDefaultGateway[0], 4);