STM32 LOW_POWER_TIMER update : use error

pull/5459/head
jeromecoutant 2017-11-17 13:07:19 +01:00
parent 85c337d0b9
commit 354ed44a65
1 changed files with 2 additions and 2 deletions

View File

@ -268,10 +268,10 @@ void rtc_write(time_t t)
// Change the RTC current date/time
if (HAL_RTC_SetDate(&RtcHandle, &dateStruct, RTC_FORMAT_BIN) != HAL_OK) {
printf("HAL_RTC_SetDate error\n");
error("HAL_RTC_SetDate error\n");
}
if (HAL_RTC_SetTime(&RtcHandle, &timeStruct, RTC_FORMAT_BIN) != HAL_OK) {
printf("HAL_RTC_SetTime error\n");
error("HAL_RTC_SetTime error\n");
}
}