summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/modtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/modtime.c')
-rw-r--r--stmhal/modtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/modtime.c b/stmhal/modtime.c
index bbcb2a5fd6..1bf8c30c4f 100644
--- a/stmhal/modtime.c
+++ b/stmhal/modtime.c
@@ -188,7 +188,7 @@ STATIC void mod_time_seconds_since_2000_to_struct_time(mp_uint_t t, mod_struct_t
/// second is 0-59
/// weekday is 0-6 for Mon-Sun.
/// yearday is 1-366
-STATIC mp_obj_t time_localtime(uint n_args, const mp_obj_t *args) {
+STATIC mp_obj_t time_localtime(mp_uint_t n_args, const mp_obj_t *args) {
if (n_args == 0 || args[0] == mp_const_none) {
// get current date and time
// note: need to call get time then get date to correctly access the registers