Skip to content

Commit 941eca9

Browse files
committed
Bug fix for MBED_16 on STM32F7 family
1 parent 53ff006 commit 941eca9

File tree

1 file changed

+1
-0
lines changed
  • hal/targets/hal/TARGET_STM/TARGET_STM32F7

1 file changed

+1
-0
lines changed

hal/targets/hal/TARGET_STM/TARGET_STM32F7/rtc_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ time_t rtc_read(void)
182182
timeinfo.tm_hour = timeStruct.Hours;
183183
timeinfo.tm_min = timeStruct.Minutes;
184184
timeinfo.tm_sec = timeStruct.Seconds;
185+
timeinfo.tm_isdst = -1;
185186

186187
// Convert to timestamp
187188
time_t t = mktime(&timeinfo);

0 commit comments

Comments
 (0)