Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stm32: Fix RTC based tick day change
On starting next calendar day, result of computing time difference between current time and previous one was negative and should be corrected by whole day on sub seconds. It was corrected by one hour instead resulting in negative tick increment that caused crash at midnight. This change fixes issue by correcting time difference computation.
- Loading branch information