Moving steering successful flashing to success if branch.

This commit is contained in:
Ole Odendahl 2023-04-11 12:46:46 +02:00
parent 6580cf40a2
commit ba786eb298
No known key found for this signature in database
GPG key ID: 116D1FA8CD50CD0B

View file

@ -128,8 +128,9 @@ void zboss_signal_handler(zb_bufid_t bufid) {
case ZB_BDB_SIGNAL_STEERING: // New network.
case ZB_BDB_SIGNAL_DEVICE_REBOOT: { // Previously joined network.
LOG_DBG("Steering complete. Status: %d", status);
prst_led_flash(/*times=*/3);
if (status == RET_OK) {
LOG_DBG("Steering successful. Status: %d", status);
prst_led_flash(/*times=*/3);
k_timer_stop(&led_flashing_timer);
prst_led_off();
}