Skip to content

Commit 521e8f1

Browse files
committed
quectel: modtime formatting fix.
1 parent b5a2ff2 commit 521e8f1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ports/quectel/modtime.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ uint64_t mp_time_start_second;
3737

3838
static void mp_time_localtime_get(timeutils_struct_time_t *tm) {
3939
Helios_RTCTime rtc_tm;
40-
Helios_RTC_GetLocalTime(&rtc_tm);
41-
tm->tm_year = rtc_tm.tm_year;
42-
tm->tm_mon = rtc_tm.tm_mon;
43-
tm->tm_mday = rtc_tm.tm_mday;
44-
tm->tm_hour = rtc_tm.tm_hour;
45-
tm->tm_min = rtc_tm.tm_min;
46-
tm->tm_sec = rtc_tm.tm_sec;
47-
tm->tm_wday = rtc_tm.tm_wday;
48-
tm->tm_yday = 0;
40+
Helios_RTC_GetLocalTime(&rtc_tm);
41+
tm->tm_year = rtc_tm.tm_year;
42+
tm->tm_mon = rtc_tm.tm_mon;
43+
tm->tm_mday = rtc_tm.tm_mday;
44+
tm->tm_hour = rtc_tm.tm_hour;
45+
tm->tm_min = rtc_tm.tm_min;
46+
tm->tm_sec = rtc_tm.tm_sec;
47+
tm->tm_wday = rtc_tm.tm_wday;
48+
tm->tm_yday = 0;
4949
}
5050

5151
// return rtc seconds since power on
@@ -56,4 +56,4 @@ static mp_obj_t mp_time_time_get(void) {
5656

5757
uint64_t mp_hal_time_ns(void) {
5858
return (Helios_RTC_GetSecond() - mp_time_start_second) * 1000000000ULL;
59-
}
59+
}

0 commit comments

Comments
 (0)