mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-24 01:16:55 +00:00
Check whether NimBLE is instantiated before using (#5015)
This commit is contained in:
parent
1096973828
commit
0cbade989e
@ -497,7 +497,7 @@ void Screen::drawDigitalClockFrame(OLEDDisplay *display, OLEDDisplayUiState *sta
|
|||||||
display->drawString(x + 20, y + 2, batteryPercent);
|
display->drawString(x + 20, y + 2, batteryPercent);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nimbleBluetooth->isConnected()) {
|
if (nimbleBluetooth && nimbleBluetooth->isConnected()) {
|
||||||
drawBluetoothConnectedIcon(display, display->getWidth() - 18, y + 2);
|
drawBluetoothConnectedIcon(display, display->getWidth() - 18, y + 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -729,7 +729,7 @@ void Screen::drawAnalogClockFrame(OLEDDisplay *display, OLEDDisplayUiState *stat
|
|||||||
display->drawString(x + 20, y + 2, batteryPercent);
|
display->drawString(x + 20, y + 2, batteryPercent);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nimbleBluetooth->isConnected()) {
|
if (nimbleBluetooth && nimbleBluetooth->isConnected()) {
|
||||||
drawBluetoothConnectedIcon(display, display->getWidth() - 18, y + 2);
|
drawBluetoothConnectedIcon(display, display->getWidth() - 18, y + 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user