Skip to content
Snippets Groups Projects
Commit 19163eae authored by Hinerk's avatar Hinerk
Browse files

match code style recommendations

parent 9ed27465
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment