Skip to content

Commit e763dcc

Browse files
authored
Merge pull request #9228 from LinuxJedi/stm32-rtc
Fix STM32 benchmark endless loop after 1 hour
2 parents e497d28 + 504c51f commit e763dcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IDE/STM32Cube/wolfssl_example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1830,7 +1830,7 @@ double current_time(void)
18301830
(void) date;
18311831

18321832
/* return seconds.milliseconds */
1833-
return ((double) time.Hours * 24) + ((double) time.Minutes * 60)
1833+
return ((double) time.Hours * 3600) + ((double) time.Minutes * 60)
18341834
+ (double) time.Seconds + ((double) subsec / 1000);
18351835
}
18361836
#endif /* HAL_RTC_MODULE_ENABLED */

0 commit comments

Comments
 (0)