only print current screen if it is active
This commit is contained in:
parent
63f993c130
commit
aff85b6d3e
@ -427,8 +427,10 @@ void oledPrint(oledScreen_t screen, char msg[]) {
|
|||||||
lines[screen][MAX_LINES - 1][MAX_CHARS - 1] = 0;
|
lines[screen][MAX_LINES - 1][MAX_CHARS - 1] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (uint8_t line = 0; line < MAX_LINES; line++) {
|
if (screen == activeScreen) {
|
||||||
oled_P6x8Str(1, line, lines[activeScreen][line]);
|
for (uint8_t line = 0; line < MAX_LINES; line++) {
|
||||||
|
oled_P6x8Str(1, line, lines[activeScreen][line]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user