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

samples: ti: 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 cdcd2dff
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -68,7 +68,6 @@ void main(void)
	 * Force the SOFT_OFF state.
	 */
	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) {