fix screen switching

This commit is contained in:
2020-11-20 17:22:49 +01:00
parent aff85b6d3e
commit f1c3cb33e3
4 changed files with 11 additions and 4 deletions

View File

@ -406,7 +406,13 @@ static uint8_t currentLine = 0;
static char lines[NUM_OF_SCREENS][MAX_LINES+1][MAX_CHARS+1];
static oledScreen_t activeScreen = OLED_SCREEN0;
void oledClear() {
void oledClearActiveScreen() {
oled_CLS();
memset(lines[activeScreen], 0, sizeof(lines[activeScreen]));
currentLine = 0;
}
void oledClearAllScreens() {
oled_CLS();
memset(lines, 0, sizeof(lines));
currentLine = 0;