summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/modpyb.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-06-22 23:03:17 +0100
committerDamien George <damien.p.george@gmail.com>2015-06-22 23:03:17 +0100
commitde8b585ab7436db3acac3a6a32b50a594729fea9 (patch)
treec06bc7e65a64c66470a17cda1a6b5f1234382bae /esp8266/modpyb.c
parentc4b592d3793bae6effe13a9b606083c9097d2779 (diff)
downloadmicropython-de8b585ab7436db3acac3a6a32b50a594729fea9.tar.gz
micropython-de8b585ab7436db3acac3a6a32b50a594729fea9.zip
esp8266: Make pyb.RTC a type, and pyb.RTC() constructs an RTC object.
This is the standard way of doing things, one should construct a peripheral object (even if it's a singleton). See issue #1330.
Diffstat (limited to 'esp8266/modpyb.c')
-rw-r--r--esp8266/modpyb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/esp8266/modpyb.c b/esp8266/modpyb.c
index d72ee79f05..aaa359a93d 100644
--- a/esp8266/modpyb.c
+++ b/esp8266/modpyb.c
@@ -172,7 +172,7 @@ STATIC const mp_map_elem_t pyb_module_globals_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_Pin), (mp_obj_t)&pyb_pin_type },
{ MP_OBJ_NEW_QSTR(MP_QSTR_ADC), (mp_obj_t)&pyb_adc_type },
- { 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 },
};
STATIC MP_DEFINE_CONST_DICT(pyb_module_globals, pyb_module_globals_table);