Skip to content

Commit de454c8

Browse files
committed
don't hide "blue" in settings menu
1 parent 47b45e2 commit de454c8

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/main.cpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -602,10 +602,6 @@ void DisplayLogo(void) {
602602
Render();
603603
DisplayVersion(true);
604604

605-
char id[4];
606-
sprintf(id, "%04X", shortId);
607-
display->DisplayText(id, TOTAL_WIDTH - 16, 0, 0, 0, 0, 1);
608-
609605
throbberColors[0] = 0;
610606
throbberColors[1] = 0;
611607
throbberColors[2] = 0;
@@ -617,7 +613,13 @@ void DisplayLogo(void) {
617613
logoWaitCounter = 0;
618614
}
619615

620-
void DisplayUpdate(void) {
616+
void DisplayId() {
617+
char id[4];
618+
sprintf(id, "%04X", shortId);
619+
display->DisplayText(id, TOTAL_WIDTH - 16, 0, 0, 0, 0, 1);
620+
}
621+
622+
void DisplayUpdate() {
621623
File f;
622624

623625
if (TOTAL_HEIGHT == 64) {
@@ -638,9 +640,7 @@ void DisplayUpdate(void) {
638640

639641
Render();
640642

641-
char id[4];
642-
sprintf(id, "%04X", shortId);
643-
display->DisplayText(id, TOTAL_WIDTH - 16, 0, 0, 0, 0, 1);
643+
DisplayId();
644644

645645
throbberColors[0] = 0;
646646
throbberColors[1] = 0;
@@ -1741,6 +1741,7 @@ void StartWiFi() {
17411741

17421742
ClearScreen();
17431743
DisplayLogo();
1744+
DisplayId();
17441745

17451746
for (uint8_t i = 0; i < 4; i++) {
17461747
if (i > 0) display->DrawPixel(i * 3 * 4 + i * 2 - 2, 4, 0);
@@ -2127,6 +2128,7 @@ void setup() {
21272128
pinMode(FORWARD_BUTTON_PIN, INPUT_PULLUP);
21282129

21292130
DisplayLogo();
2131+
DisplayId();
21302132

21312133
// Create synchronization primitives
21322134
for (uint8_t i = 0; i < NUM_BUFFERS; i++) {

0 commit comments

Comments
 (0)