Skip to content

Commit 354ed44

Browse files
committed
STM32 LOW_POWER_TIMER update : use error
1 parent 85c337d commit 354ed44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

targets/TARGET_STM/rtc_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,10 @@ void rtc_write(time_t t)
268268

269269
// Change the RTC current date/time
270270
if (HAL_RTC_SetDate(&RtcHandle, &dateStruct, RTC_FORMAT_BIN) != HAL_OK) {
271-
printf("HAL_RTC_SetDate error\n");
271+
error("HAL_RTC_SetDate error\n");
272272
}
273273
if (HAL_RTC_SetTime(&RtcHandle, &timeStruct, RTC_FORMAT_BIN) != HAL_OK) {
274-
printf("HAL_RTC_SetTime error\n");
274+
error("HAL_RTC_SetTime error\n");
275275
}
276276
}
277277

0 commit comments

Comments
 (0)