mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #9180 from kjbracey-arm/stm_dont_skip_rtc_write
Revert "STM32 RTC : skip rtc_write if possible"pull/9197/head
commit
52a45e71d3
|
@ -217,11 +217,6 @@ void rtc_write(time_t t)
|
||||||
RTC_DateTypeDef dateStruct = {0};
|
RTC_DateTypeDef dateStruct = {0};
|
||||||
RTC_TimeTypeDef timeStruct = {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();
|
core_util_critical_section_enter();
|
||||||
RtcHandle.Instance = RTC;
|
RtcHandle.Instance = RTC;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue