Skip to content
Commit a343cf94 authored by Andy Ross's avatar Andy Ross Committed by Carles Cufí
Browse files

kernel/timer: Handle K_FOREVER in k_timer_start()



The possibility of passing K_FOREVER as the initial duration argument
to k_timer_start() wasn't being handled, with the result that the
computed value became an zero timeout (effecitvely treating it as
K_NO_WAIT and firing at the next tick).

This is obviously pathlogical, but it should still do what the code
says it should and wait forever.

Make k_timer_start(..., K_FOREVER, ...) a noop.

Fixes #25820

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