Fix NimBLE deinit null check
This commit is contained in:
@@ -686,6 +686,9 @@ class NimbleBluetoothServerCallback : public NimBLEServerCallbacks
|
|||||||
#ifdef NIMBLE_TWO
|
#ifdef NIMBLE_TWO
|
||||||
if (ble->isDeInit)
|
if (ble->isDeInit)
|
||||||
return;
|
return;
|
||||||
|
#else
|
||||||
|
if (nimbleBluetooth && nimbleBluetooth->isDeInit)
|
||||||
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
meshtastic::BluetoothStatus newStatus(meshtastic::BluetoothStatus::ConnectionState::DISCONNECTED);
|
meshtastic::BluetoothStatus newStatus(meshtastic::BluetoothStatus::ConnectionState::DISCONNECTED);
|
||||||
|
|||||||
Reference in New Issue
Block a user