aboutsummaryrefslogtreecommitdiff
path: root/cc3200/mods/modpyb.c
diff options
context:
space:
mode:
authorDaniel Campora2015-05-26 16:50:18 +0200
committerDaniel Campora2015-05-27 09:45:24 +0200
commitfca349344214e1bf7be95b728d64681adf1b4194 (patch)
treea2b93a4f82347da05b45f1efd394f1d2a6613ae2 /cc3200/mods/modpyb.c
parent5a0c5f8fea921bdc58c895028c032a3c4d9ebcbb (diff)
cc3200: Add make_new method to the RTC, like in stmhal.
Diffstat (limited to 'cc3200/mods/modpyb.c')
-rw-r--r--cc3200/mods/modpyb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc3200/mods/modpyb.c b/cc3200/mods/modpyb.c
index 44fea54b5..05645a47a 100644
--- a/cc3200/mods/modpyb.c
+++ b/cc3200/mods/modpyb.c
@@ -266,7 +266,7 @@ STATIC const mp_map_elem_t pyb_module_globals_table[] = {
#endif
#if MICROPY_HW_ENABLE_RTC
- { MP_OBJ_NEW_QSTR(MP_QSTR_RTC), (mp_obj_t)&pyb_rtc_obj },
+ { MP_OBJ_NEW_QSTR(MP_QSTR_RTC), (mp_obj_t)&pyb_rtc_type },
#endif
{ MP_OBJ_NEW_QSTR(MP_QSTR_Pin), (mp_obj_t)&pin_type },