timeouts: Fix power _sys_suspend invocation
Use K_TICKS_FOREVER instead of K_FOREVER after the timeout API rework. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
94861a438b
commit
04d1104ee5
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ void sys_pm_force_power_state(enum power_states state)
|
||||||
#ifdef CONFIG_SYS_PM_DIRECT_FORCE_MODE
|
#ifdef CONFIG_SYS_PM_DIRECT_FORCE_MODE
|
||||||
(void)arch_irq_lock();
|
(void)arch_irq_lock();
|
||||||
forced_pm_state = state;
|
forced_pm_state = state;
|
||||||
_sys_suspend(K_FOREVER);
|
_sys_suspend(K_TICKS_FOREVER);
|
||||||
#else
|
#else
|
||||||
forced_pm_state = state;
|
forced_pm_state = state;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue