Skip to content
Commit e02acca6 authored by Piotr Dymacz's avatar Piotr Dymacz Committed by Carles Cufí
Browse files

samples: cc13x2_cc26x2: system_off: fix force state usage



This is the same fix as the one introduced in 49520eea ("samples: nrf:
system_off: Fix force state usage") for nRF boards. Quoting original
commit:

  The sample cannot spin in an infinity loop because the idle thread
  will not run and consequently the forced state will not be used.

Without this fix, the system doesn't enter SOFT_OFF state:

  *** Booting Zephyr OS build zephyr-v3.0.0-3495-ga456c5274614  ***

  cc1352r1_launchxl system off demo
  Busy-wait 5 s
  Sleep 2000 us (IDLE)
  Sleep 3 s (STANDBY)
  Entering system off (SHUTDOWN); press BUTTON1 to restart
  ERROR: System off failed

Signed-off-by: default avatarPiotr Dymacz <pepe2k@gmail.com>
parent 9bd97eb0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment