[zigbee sample] __ASSERT if not commissioned on watchdog
This commit is contained in:
parent
85ca1a67bc
commit
c8b38be3ed
1 changed files with 3 additions and 1 deletions
|
|
@ -12,7 +12,9 @@ void callback_work_handler(struct k_work *work) {
|
||||||
LOG_INF("Running restart callback_work_handler.");
|
LOG_INF("Running restart callback_work_handler.");
|
||||||
prst_debug_counters_increment("steering_watchdog_restart");
|
prst_debug_counters_increment("steering_watchdog_restart");
|
||||||
// If the device is not commissioned, the rejoin procedure is started.
|
// If the device is not commissioned, the rejoin procedure is started.
|
||||||
user_input_indicate();
|
__ASSERT(false,
|
||||||
|
"Device is not commissioned after %d seconds. Rebooting.",
|
||||||
|
CONFIG_PRST_ZB_RESTART_WATCHDOG_TIMEOUT_SEC);
|
||||||
}
|
}
|
||||||
|
|
||||||
K_WORK_DEFINE(callback_work, callback_work_handler);
|
K_WORK_DEFINE(callback_work, callback_work_handler);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue