aboutsummaryrefslogtreecommitdiff
path: root/esp8266/modpyb.h
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.h
parentc4b592d3793bae6effe13a9b606083c9097d2779 (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.h2
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;