Bug fix for MBED_16 on STM32F7 family

pull/2029/head
adustm 2016-06-28 11:11:58 +02:00
parent 53ff006f53
commit 941eca961f
1 changed files with 1 additions and 0 deletions

View File

@ -182,6 +182,7 @@ time_t rtc_read(void)
timeinfo.tm_hour = timeStruct.Hours;
timeinfo.tm_min = timeStruct.Minutes;
timeinfo.tm_sec = timeStruct.Seconds;
timeinfo.tm_isdst = -1;
// Convert to timestamp
time_t t = mktime(&timeinfo);