diff --git a/samples/boards/ti/cc13x2_cc26x2/system_off/src/main.c b/samples/boards/ti/cc13x2_cc26x2/system_off/src/main.c index 5fa33170531..2a919f77378 100644 --- a/samples/boards/ti/cc13x2_cc26x2/system_off/src/main.c +++ b/samples/boards/ti/cc13x2_cc26x2/system_off/src/main.c @@ -69,6 +69,12 @@ void main(void) */ pm_state_force(0u, &(struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0}); + /* Now we need to go sleep. This will let the idle thread runs and + * the pm subsystem will use the forced state. To confirm that the + * forced state is used, lets set the same timeout used previously. + */ + k_sleep(K_SECONDS(SLEEP_S)); + printk("ERROR: System off failed\n"); while (true) { /* spin to avoid fall-off behavior */