From 38a2da68c2e02b8fc5ae308ca9e3b667f8a0aedc Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 8 Jan 2014 17:33:12 +0000 Subject: py: Stuff qstr in object pointer; keys for mp_map_t are now always mp_obj_t. --- stm/pybwlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stm') diff --git a/stm/pybwlan.c b/stm/pybwlan.c index 6988f1c84..8da7bb937 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); -- cgit v1.2.3