diff --git a/src/command/handlers/cmd_device.c b/src/command/handlers/cmd_device.c index 397baf8..487fff7 100644 --- a/src/command/handlers/cmd_device.c +++ b/src/command/handlers/cmd_device.c @@ -20,13 +20,13 @@ static void cmd_clear_bonds_and_reboot(const char *cmd_name) { - led_set_state(LED_STATE_BOND_DELETE); - k_msleep(2000); - bond_data_delete = true; ble_pairing_window_mark_reset_open(); ble_advertising_restart_suspend(true); + led_set_state(LED_STATE_BOND_DELETE); + k_msleep(2000); + #if IS_ENABLED(CONFIG_BT_SMP) int err = bt_unpair(BT_ID_DEFAULT, NULL); if (err)