ifdef gate the new boolean to NIMBLE_TWO devices

This commit is contained in:
Jonathan Bennett
2025-09-19 19:51:26 -05:00
parent cc1c568916
commit ee89bdd569

View File

@@ -231,8 +231,10 @@ class NimbleBluetoothServerCallback : public NimBLEServerCallbacks
{
LOG_INFO("BLE disconnect");
#endif
#ifdef NIMBLE_TWO
if (ble->isDeInit)
return;
#endif
meshtastic::BluetoothStatus newStatus(meshtastic::BluetoothStatus::ConnectionState::DISCONNECTED);
bluetoothStatus->updateStatus(&newStatus);