From 19163eaeccc10d6f5323ff4edcd6ab6aa925ca85 Mon Sep 17 00:00:00 2001 From: Hinerk <hinerk.stender@mail.de> Date: Thu, 22 Aug 2019 21:17:20 +0200 Subject: [PATCH] match code style recommendations --- pycardium/modules/utime.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pycardium/modules/utime.c b/pycardium/modules/utime.c index f02972d4..a3975675 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; -- GitLab