Fixed clearing lines of display

This commit is contained in:
Filip Znachor 2022-12-14 15:17:35 +01:00
parent 0ad5e0056e
commit 4061c62fd5

View file

@ -274,10 +274,17 @@ void displayDepartures() {
}
}
for(int i=displayedIndex; i<lines; i++) {
M5.Lcd.fillRect(0, i*30, 320, 30, BLACK);
clearLine(i);
}
}
void clearLine(int y) {
displayedLines[y] = "";
displayedLastStops[y] = "";
displayedDepartureTimes[y] = "";
M5.Lcd.fillRect(0, y*30, 320, 30, BLACK);
}
@ -355,4 +362,4 @@ void task1(void* pvParameters) {
while(true) {
receiveMsg(1);
}
}
}