From c8b38be3edf51f26d1c8be0ad7b1e73b9f9bb709 Mon Sep 17 00:00:00 2001 From: rbaron Date: Wed, 30 Aug 2023 07:54:54 +0200 Subject: [PATCH] [zigbee sample] __ASSERT if not commissioned on watchdog --- code/nrf-connect/samples/zigbee/src/restart_handler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/nrf-connect/samples/zigbee/src/restart_handler.c b/code/nrf-connect/samples/zigbee/src/restart_handler.c index 0a23df3..8b5f451 100644 --- a/code/nrf-connect/samples/zigbee/src/restart_handler.c +++ b/code/nrf-connect/samples/zigbee/src/restart_handler.c @@ -12,7 +12,9 @@ void callback_work_handler(struct k_work *work) { LOG_INF("Running restart callback_work_handler."); prst_debug_counters_increment("steering_watchdog_restart"); // 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);