Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
drivers: timer: nrf_rtc_timer: fix handling for 24-bit counter #11747
Two subtractions failed to account for the possibility that a calculated
Use the subtraction helper to avoid the problem.
(The subtraction in z_clock_set_timeout was the cause of issue #11694;
Signed-off-by: Peter A. Bigot firstname.lastname@example.org
andyross left a comment
Yeah, this was a cut and paste goof on my part. I recognized the need for a special subtraction routine on this particular timer when I wrote the first code, but wasn't rigorous about making sure it was always used as the timer drivers (which are all very similar) evolved. Sorry!
referenced this pull request
Nov 29, 2018
@@ Coverage Diff @@ ## master #11747 +/- ## ======================================= Coverage 48.2% 48.2% ======================================= Files 280 280 Lines 43323 43323 Branches 10374 10374 ======================================= Hits 20886 20886 Misses 18289 18289 Partials 4148 4148