Update 'RTC.c'
This commit is contained in:
parent
2bd5fa5c12
commit
9a9a0ef9a3
6
RTC.c
6
RTC.c
@ -28,10 +28,8 @@ void set_time (void)
|
|||||||
{
|
{
|
||||||
_Error_Handler(__FILE__, __LINE__);
|
_Error_Handler(__FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
sDate.WeekDay = RTC_WEEKDAY_THURSDAY; //
|
sDate.WeekDay = RTC_WEEKDAY_THURSDAY; // day
|
||||||
day
|
sDate.Month = RTC_MONTH_AUGUST; // month
|
||||||
sDate.Month = RTC_MONTH_AUGUST; //
|
|
||||||
month
|
|
||||||
sDate.Date = 0x9; // date
|
sDate.Date = 0x9; // date
|
||||||
sDate.Year = 0x18; // year
|
sDate.Year = 0x18; // year
|
||||||
if (HAL_RTC_SetDate(&hrtc, &sDate, RTC_FORMAT_BCD) != HAL_OK)
|
if (HAL_RTC_SetDate(&hrtc, &sDate, RTC_FORMAT_BCD) != HAL_OK)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user