mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 22:22:05 +00:00
Bluetooth dissabled indicator
This commit is contained in:
parent
4a55f6468a
commit
10f1567b96
@ -2675,8 +2675,7 @@ static void drawDeviceFocused(OLEDDisplay *display, OLEDDisplayUiState *state, i
|
||||
|
||||
config.display.heading_bold = origBold;
|
||||
|
||||
|
||||
// Crafting all the data first so we can use it
|
||||
// === Third & Fourth Rows: Node Identity ===
|
||||
int textWidth = 0;
|
||||
int nameX = 0;
|
||||
int yOffset = (SCREEN_WIDTH > 128) ? 0 : 7;
|
||||
@ -2718,6 +2717,12 @@ static void drawDeviceFocused(OLEDDisplay *display, OLEDDisplayUiState *state, i
|
||||
display->drawString(nameX, compactFourthLine, shortnameble);
|
||||
}
|
||||
|
||||
// === Fifth Row: Bluetooth Off Icon ===
|
||||
if (!config.bluetooth.enabled) {
|
||||
const int iconX = 2; // Left aligned
|
||||
const int iconY = compactFifthLine;
|
||||
display->drawXbm(iconX, iconY, placeholder_width, placeholder_height, placeholder);
|
||||
}
|
||||
}
|
||||
|
||||
// ****************************
|
||||
|
@ -255,4 +255,17 @@ const uint8_t key_symbol[] PROGMEM = {
|
||||
0b00000000
|
||||
};
|
||||
|
||||
#define placeholder_width 8
|
||||
#define placeholder_height 8
|
||||
const uint8_t placeholder[] PROGMEM = {
|
||||
0b11111111,
|
||||
0b11111111,
|
||||
0b11111111,
|
||||
0b11111111,
|
||||
0b11111111,
|
||||
0b11111111,
|
||||
0b11111111,
|
||||
0b11111111
|
||||
};
|
||||
|
||||
#include "img/icon.xbm"
|
||||
|
Loading…
Reference in New Issue
Block a user