Commit e2d25bf0 authored by Flavio Ceolin's avatar Flavio Ceolin Committed by Anas Nashif
Browse files

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: default avatarFlavio Ceolin <flavio.ceolin@intel.com>
parent 51c20135
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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) {