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.h | |
| parent | c4b592d3793bae6effe13a9b606083c9097d2779 (diff) | |
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.h')
| -rw-r--r-- | esp8266/modpyb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/esp8266/modpyb.h b/esp8266/modpyb.h index 641c8fc76..56159de24 100644 --- a/esp8266/modpyb.h +++ b/esp8266/modpyb.h @@ -1,3 +1,3 @@ extern const mp_obj_type_t pyb_pin_type; extern const mp_obj_type_t pyb_adc_type; -extern const mp_obj_base_t pyb_rtc_obj; +extern const mp_obj_type_t pyb_rtc_type; |
