summaryrefslogtreecommitdiff
path: root/stmhal/rtc.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-20 00:16:30 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-20 00:16:30 +0100
commitd689430e790bfbd40a4fc3139b118aee5576baf7 (patch)
treee25efdfc49cea0b743e457c2798b538e25ff0a4f /stmhal/rtc.c
parentc7c4a8439735ff7617f78b5b6c0cdfb05ae88656 (diff)
stmhal: Add SPI class.
Also some updates to compile with latest changes to core py.
Diffstat (limited to 'stmhal/rtc.c')
-rw-r--r--stmhal/rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/rtc.c b/stmhal/rtc.c
index 9a0ebfac4..b7a5e0f0f 100644
--- a/stmhal/rtc.c
+++ b/stmhal/rtc.c
@@ -231,7 +231,7 @@ STATIC const pyb_rtc_obj_t pyb_rtc_obj = {{&pyb_rtc_type}};
STATIC mp_obj_t pyb_rtc_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_obj_t *args) {
// check arguments
- mp_check_nargs(n_args, 0, 0, n_kw, false);
+ mp_arg_check_num(n_args, n_kw, 0, 0, false);
// return constant object
return (mp_obj_t)&pyb_rtc_obj;