samples: nrf: system_off: Remove unnecessary sleep
pm_power_state_force no longer requires the idle thread to run. Just removing the following k_sleep for two reasons, first it is not necessary, second it tests that pm_power_state_force works as it should. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
51c2013520
commit
e2d25bf031
1 changed files with 0 additions and 1 deletions
|
@ -91,7 +91,6 @@ void main(void)
|
|||
* force entry to deep sleep on any delay.
|
||||
*/
|
||||
pm_power_state_force((struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0});
|
||||
k_sleep(K_MSEC(1));
|
||||
|
||||
printk("ERROR: System off failed\n");
|
||||
while (true) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue