Fixed clearing lines of display
This commit is contained in:
parent
0ad5e0056e
commit
4061c62fd5
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue