Skip to content

Commit 52a45e7

Browse files
authored
Merge pull request #9180 from kjbracey-arm/stm_dont_skip_rtc_write
Revert "STM32 RTC : skip rtc_write if possible"
2 parents 1d230c1 + 535b439 commit 52a45e7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

targets/TARGET_STM/rtc_api.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,6 @@ void rtc_write(time_t t)
217217
RTC_DateTypeDef dateStruct = {0};
218218
RTC_TimeTypeDef timeStruct = {0};
219219

220-
/* if the requested time is the current time, no need to continue */
221-
if (t == rtc_read()) {
222-
return;
223-
}
224-
225220
core_util_critical_section_enter();
226221
RtcHandle.Instance = RTC;
227222

0 commit comments

Comments
 (0)