mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-15 09:32:08 +00:00
Fix crash on shutdown, if Bluetooth not enabled (#3686)
Previously attempted to call deinit method for a nullptr
This commit is contained in:
parent
f6cfdfe881
commit
dfc43bae18
@ -213,6 +213,7 @@ void doDeepSleep(uint32_t msecToWake, bool skipPreflight = false)
|
|||||||
|
|
||||||
#ifdef ARCH_ESP32
|
#ifdef ARCH_ESP32
|
||||||
// Full shutdown of bluetooth hardware
|
// Full shutdown of bluetooth hardware
|
||||||
|
if (nimbleBluetooth)
|
||||||
nimbleBluetooth->deinit();
|
nimbleBluetooth->deinit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user