fix(nrf52): keep BLE active during reset cleanup (#10873)

This commit is contained in:
Benjamin Faershtein
2026-07-03 18:57:15 -05:00
committed by GitHub
co-authored by GitHub
parent babbac3308
commit 6085a4f003
3 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -1696,16 +1696,17 @@ void menuHandler::resetNodeDBMenu()
bannerOptions.optionsCount = 3;
bannerOptions.bannerCallback = [](int selected) -> void {
if (selected == 1 || selected == 2) {
disableBluetooth();
screen->setFrames(Screen::FOCUS_DEFAULT);
}
if (selected == 1) {
LOG_INFO("Initiate node-db reset");
nodeDB->resetNodes();
disableBluetooth();
rebootAtMsec = (millis() + DEFAULT_REBOOT_SECONDS * 1000);
} else if (selected == 2) {
LOG_INFO("Initiate node-db reset but keeping favorites");
nodeDB->resetNodes(1);
disableBluetooth();
rebootAtMsec = (millis() + DEFAULT_REBOOT_SECONDS * 1000);
} else if (selected == 0) {
menuQueue = NodeBaseMenu;