mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-12 08:02:04 +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,7 +213,8 @@ void doDeepSleep(uint32_t msecToWake, bool skipPreflight = false)
|
||||
|
||||
#ifdef ARCH_ESP32
|
||||
// Full shutdown of bluetooth hardware
|
||||
nimbleBluetooth->deinit();
|
||||
if (nimbleBluetooth)
|
||||
nimbleBluetooth->deinit();
|
||||
#endif
|
||||
|
||||
#ifdef ARCH_ESP32
|
||||
|
Loading…
Reference in New Issue
Block a user