Merge pull request #9180 from kjbracey-arm/stm_dont_skip_rtc_write

Revert "STM32 RTC : skip rtc_write if possible"
pull/9197/head
Anna Bridge 2018-12-24 12:54:01 +00:00 committed by GitHub
commit 52a45e71d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -217,11 +217,6 @@ void rtc_write(time_t t)
RTC_DateTypeDef dateStruct = {0};
RTC_TimeTypeDef timeStruct = {0};
/* if the requested time is the current time, no need to continue */
if (t == rtc_read()) {
return;
}
core_util_critical_section_enter();
RtcHandle.Instance = RTC;