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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/os/hal/src/rtc.c b/os/hal/src/rtc.c
index 4b57614a1..d4b13ba62 100644
--- a/os/hal/src/rtc.c
+++ b/os/hal/src/rtc.c
@@ -187,6 +187,8 @@ void rtcSetCallback(RTCDriver *rtcp, rtccb_t callback) {
/**
* @brief Get current time in format suitable for usage in FAT file system.
+ * @note The information about day of week and DST is lost in DOS
+ * format, the second field loses its least significant bit.
*
* @param[out] timespec pointer to a @p RTCDateTime structure
* @return FAT date/time value.
@@ -194,7 +196,6 @@ void rtcSetCallback(RTCDriver *rtcp, rtccb_t callback) {
* @api
*/
uint32_t rtcConvertDateTimeToFAT(const RTCDateTime *timespec) {
-
uint32_t fattime;
uint32_t sec, min, hour, tmp;