Skip to content
Commit e77f942c authored by Adam Kondraciuk's avatar Adam Kondraciuk Committed by Daniel DeGrasse
Browse files

drivers: timer: nrf_grtc_timer: add last_count initialization



The GRTC counter is not cleared at startup, therefore the
`last_count` variable needs to be initialized accordingly.
This change:
- Prevents overflow of the `sys_clock_announce()` int32_t parameter
- Ensures the correct uptime value, which should be reset during
  initialization

Signed-off-by: default avatarAdam Kondraciuk <adam.kondraciuk@nordicsemi.no>
parent a3d37e3f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment