diff --git a/pycardium/modules/utime.c b/pycardium/modules/utime.c index f02972d4934988272e34d84aac3b8737fe0829b4..a3975675ad3858ea3f822f64ed383db0747b43d1 100644 --- a/pycardium/modules/utime.c +++ b/pycardium/modules/utime.c @@ -42,16 +42,15 @@ static mp_obj_t time_time(void) } MP_DEFINE_CONST_FUN_OBJ_0(time_time_obj, time_time); - static mp_obj_t time_time_ms(void) { uint64_t milliseconds; - milliseconds = epic_rtc_get_milliseconds() - (EPOCH_OFFSET + TZONE_OFFSET) * 1000ULL; + milliseconds = epic_rtc_get_milliseconds() + - (EPOCH_OFFSET + TZONE_OFFSET) * 1000ULL; return mp_obj_new_int_from_ull(milliseconds); } MP_DEFINE_CONST_FUN_OBJ_0(time_time_ms_obj, time_time_ms); - static mp_obj_t time_localtime(size_t n_args, const mp_obj_t *args) { mp_int_t seconds;