aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/src/rtc.c')
-rw-r--r--os/hal/src/rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/src/rtc.c b/os/hal/src/rtc.c
index 5459b3b85..41015ad8b 100644
--- a/os/hal/src/rtc.c
+++ b/os/hal/src/rtc.c
@@ -235,7 +235,7 @@ void rtcConvertDateTimeToStructTm(const RTCDateTime *timespec,
timp->tm_hour = tmp / 3600;
if (NULL != tv_msec) {
- *tv_msec = (uint32_t)timespec->millisecond % 1000;
+ *tv_msec = (uint32_t)timespec->millisecond % 1000U;
}
}