diff --git a/code/nrf-connect/samples/zigbee/src/main.c b/code/nrf-connect/samples/zigbee/src/main.c index ddaa000..8b8537b 100644 --- a/code/nrf-connect/samples/zigbee/src/main.c +++ b/code/nrf-connect/samples/zigbee/src/main.c @@ -141,8 +141,8 @@ void zboss_signal_handler(zb_bufid_t bufid) { LOG_DBG("Steering failed. Status: %d", status); prst_led_flash(7); k_timer_start(&restart_timer, K_SECONDS(PRST_ZB_RESET_TIMEOUT), K_MSEC(0)); - k_timer_stop(&led_flashing_timer); // Power saving - prst_led_off(); + k_timer_stop(&led_flashing_timer); // Power saving + prst_led_off(); } } case ZB_BDB_SIGNAL_DEVICE_FIRST_START: diff --git a/code/nrf-connect/samples/zigbee/src/restart_handler.c b/code/nrf-connect/samples/zigbee/src/restart_handler.c index b6f6430..961fbbe 100644 --- a/code/nrf-connect/samples/zigbee/src/restart_handler.c +++ b/code/nrf-connect/samples/zigbee/src/restart_handler.c @@ -1,14 +1,14 @@ -#include -#include -#include - #include "restart_handler.h" +#include +#include +#include + LOG_MODULE_REGISTER(restart_handler, CONFIG_LOG_DEFAULT_LEVEL); static void restart_network_steering_cb(struct k_timer *timer) { - LOG_DBG("Restart handler expired. Restarting network steering."); - user_input_indicate(); + LOG_DBG("Restart handler expired. Restarting network steering."); + user_input_indicate(); } K_TIMER_DEFINE(restart_timer, restart_network_steering_cb, NULL); diff --git a/code/nrf-connect/samples/zigbee/src/restart_handler.h b/code/nrf-connect/samples/zigbee/src/restart_handler.h index 911470f..a3f2e6a 100644 --- a/code/nrf-connect/samples/zigbee/src/restart_handler.h +++ b/code/nrf-connect/samples/zigbee/src/restart_handler.h @@ -3,4 +3,4 @@ static const int PRST_ZB_RESET_TIMEOUT = 5 * 60; -#endif // _PRST_ZB_RESTART_HANDLER_H_ +#endif // _PRST_ZB_RESTART_HANDLER_H_