diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-08 17:33:12 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-08 17:33:12 +0000 |
commit | 38a2da68c2e02b8fc5ae308ca9e3b667f8a0aedc (patch) | |
tree | 8bf705c9aff2013e1949e5edd803893113d385d3 /stm/pybwlan.c | |
parent | ea9e441a75d7ea6633b0ea95b21667c48a6f7b6a (diff) |
py: Stuff qstr in object pointer; keys for mp_map_t are now always mp_obj_t.
Diffstat (limited to 'stm/pybwlan.c')
-rw-r--r-- | stm/pybwlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |