summaryrefslogtreecommitdiffstatshomepage
path: root/ports/samd/machine_rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/samd/machine_rtc.c')
-rw-r--r--ports/samd/machine_rtc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/samd/machine_rtc.c b/ports/samd/machine_rtc.c
index 74c2266d60..4b03488b71 100644
--- a/ports/samd/machine_rtc.c
+++ b/ports/samd/machine_rtc.c
@@ -133,6 +133,7 @@ static mp_obj_t machine_rtc_datetime_helper(size_t n_args, const mp_obj_t *args,
}
#endif
+ mp_hal_time_ns_set_from_rtc();
return mp_const_none;
}
}