본딩 정보 삭제시 광고 재시작 먼저 중지
- LED 상태 덮음 방지
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user