Skip to content
Commit 2f6b202e authored by Andy Ross's avatar Andy Ross Committed by Anas Nashif
Browse files

tests/schedule_api: Correct tick/ms math for non-divisible clocks



Adjusting the tick alignment of this test caused it to start breaking
on nRF5 platforms, which use a 32768 Hz clock that doesn't divide
evenly into the millisecond precision used by the test.  The "half
slice" math ended up being wrong by a bit.

Convert to ticks first before computing the cycle delay needed.

Fixes #29705

Signed-off-by: default avatarAndy Ross <andrew.j.ross@intel.com>
parent 10180af3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment