Skip to content
Commit b4aeef4d authored by Eric Johnson's avatar Eric Johnson Committed by Anas Nashif
Browse files

kernel: timer: Fix incorrect behavior for timers with K_FOREVER period



Zephyr docs state that timers will act as one-shot timers when started
with a period of K_NO_WAIT or K_FOREVER. However the code adjusting
period was setting K_FOREVER timeout ticks to 1 which caused the timer
to expire every tick. This adds a check to not adjust K_FOREVER periods

Signed-off-by: default avatarEric Johnson <eric@liveathos.com>
parent 98dbea09
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment