diff options
author | Damien George <damien.p.george@gmail.com> | 2015-06-22 23:03:17 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-06-22 23:03:17 +0100 |
commit | de8b585ab7436db3acac3a6a32b50a594729fea9 (patch) | |
tree | c06bc7e65a64c66470a17cda1a6b5f1234382bae /esp8266/modpyb.c | |
parent | c4b592d3793bae6effe13a9b606083c9097d2779 (diff) | |
download | micropython-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.c | 2 |
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); |