diff --git a/targets/TARGET_STM/rtc_api.c b/targets/TARGET_STM/rtc_api.c index 8c2432b925c..e28a311b842 100644 --- a/targets/TARGET_STM/rtc_api.c +++ b/targets/TARGET_STM/rtc_api.c @@ -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;