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:
Flavio Ceolin 2021-04-02 14:09:38 -07:00 committed by Anas Nashif
commit e2d25bf031

View file

@ -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) {