mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-27 18:31:37 +00:00
remove /prefs for nrf factory reset
This commit is contained in:
parent
5b8ff56731
commit
f2a4308497
@ -95,14 +95,16 @@ bool NodeDB::resetRadioConfig()
|
|||||||
nvs_flash_erase();
|
nvs_flash_erase();
|
||||||
#endif
|
#endif
|
||||||
#ifdef NRF52_SERIES
|
#ifdef NRF52_SERIES
|
||||||
Bluefruit.begin();
|
FS.rmdir_r("/prefs");
|
||||||
|
|
||||||
DEBUG_MSG("Clearing bluetooth bonds!\n");
|
Bluefruit.begin();
|
||||||
bond_print_list(BLE_GAP_ROLE_PERIPH);
|
|
||||||
bond_print_list(BLE_GAP_ROLE_CENTRAL);
|
|
||||||
|
|
||||||
Bluefruit.Periph.clearBonds();
|
DEBUG_MSG("Clearing bluetooth bonds!\n");
|
||||||
Bluefruit.Central.clearBonds();
|
bond_print_list(BLE_GAP_ROLE_PERIPH);
|
||||||
|
bond_print_list(BLE_GAP_ROLE_CENTRAL);
|
||||||
|
|
||||||
|
Bluefruit.Periph.clearBonds();
|
||||||
|
Bluefruit.Central.clearBonds();
|
||||||
#endif
|
#endif
|
||||||
didFactoryReset = true;
|
didFactoryReset = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user