본딩 정보 삭제시 광고 재시작 먼저 중지

- LED 상태 덮음 방지
This commit is contained in:
2026-08-31 11:55:58 +09:00
parent ed47566fe1
commit acffbe9b19
+3 -3
View File
@@ -20,13 +20,13 @@
static void cmd_clear_bonds_and_reboot(const char *cmd_name) 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; bond_data_delete = true;
ble_pairing_window_mark_reset_open(); ble_pairing_window_mark_reset_open();
ble_advertising_restart_suspend(true); ble_advertising_restart_suspend(true);
led_set_state(LED_STATE_BOND_DELETE);
k_msleep(2000);
#if IS_ENABLED(CONFIG_BT_SMP) #if IS_ENABLED(CONFIG_BT_SMP)
int err = bt_unpair(BT_ID_DEFAULT, NULL); int err = bt_unpair(BT_ID_DEFAULT, NULL);
if (err) if (err)