Make nRF52 lockdown support opt-in (#10712)

* Make nRF52 lockdown support opt-in

* Scope lockdown opt-in normalization to nRF52
This commit is contained in:
Benjamin Faershtein
2026-06-13 21:14:47 -05:00
committed by GitHub
co-authored by GitHub
parent 745b53698a
commit 5d1c4f15b7
2 changed files with 27 additions and 9 deletions
+2
View File
@@ -71,9 +71,11 @@ void onConnect(uint16_t conn_handle)
// the (single, reused) bluetoothPhoneAPI instance, so a prior session's
// authorization can otherwise survive a quick reconnect. handleStartConfig()
// re-locks on every want_config too; this closes the window before that.
#ifdef MESHTASTIC_PHONEAPI_ACCESS_CONTROL
if (bluetoothPhoneAPI) {
bluetoothPhoneAPI->setAdminAuthorized(false);
}
#endif
// Notify UI (or any other interested firmware components)
meshtastic::BluetoothStatus newStatus(meshtastic::BluetoothStatus::ConnectionState::CONNECTED);