File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -279,16 +279,16 @@ TimerTime_t RtcComputeElapsedTime( TimerTime_t eventInTime )
279279
280280 HAL_RTC_GetTime ( & RtcHandle , & timeRtc , RTC_FORMAT_BIN );
281281 HAL_RTC_GetDate ( & RtcHandle , & dateRtc , RTC_FORMAT_BIN );
282-
282+
283283 /* Get the Current time in Milisecond */
284284 currentTimeMs = ( ( ( dateRtc .Date * SecondsInDay ) +
285285 ( timeRtc .Hours * SecondsInHour ) +
286286 ( timeRtc .Minutes * SecondsInMinute ) +
287287 timeRtc .Seconds ) );
288288
289289 currentTimeMs = round ( currentTimeMs * RTC_ALARM_TICK_DURATION );
290-
291- if ( eventInTime == 0 ) //Needed at boot, cannot compute with 0 or elapsed time will be equal to current time
290+
291+ if ( eventInTime == 0 ) //Needed at boot, cannot compute with 0 or elapsed time will be equal to current time
292292 {
293293 return 0 ;
294294 }
@@ -301,9 +301,9 @@ TimerTime_t RtcComputeElapsedTime( TimerTime_t eventInTime )
301301 }
302302 else
303303 {
304- lastMonth = dateRtc .Month - 1 ;
304+ lastMonth = dateRtc .Month - 1 ;
305305 }
306-
306+
307307 // compute from eventInTime to roll over and add currentTimeMs
308308 if ( lastMonth != MONTH_FEBRUARY )
309309 {
@@ -555,7 +555,7 @@ void BlockLowPowerDuringTask( bool status )
555555static uint8_t RtcComputeMonthOverflow ( uint8_t timeoutInDays , uint8_t year , uint8_t month )
556556{
557557 uint8_t timeout = 0 ;
558-
558+
559559 if ( month != MONTH_FEBRUARY )
560560 {
561561 switch ( month )
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ TimerTime_t RtcGetTimerValue( void );
7575uint32_t RtcGetElapsedAlarmTime ( void );
7676
7777/*!
78- * \brief Compute the timeout time of a future event in time
78+ * \brief Compute the timeout time of a future event in time
7979 *
8080 * \param[IN] futureEventInTime value in time
8181 * \retval time between now and the futureEventInTime
You can’t perform that action at this time.
0 commit comments