Fix clear msg area

This commit is contained in:
Gabriel Augendre 2023-01-02 22:57:10 +01:00
parent 5d95838769
commit 83baacdfa4

View file

@ -57,8 +57,7 @@ bool fileIsValid(String fileName) {
}
void clearMessageArea() {
display.drawRect(SCREEN_MSG_X, SCREEN_MSG_Y, SCREEN_WIDTH - SCREEN_MSG_X, SCREEN_HEIGHT - SCREEN_MSG_Y, BLACK);
display.display();
display.fillRect(SCREEN_MSG_X, SCREEN_MSG_Y, SCREEN_WIDTH - SCREEN_MSG_X, SCREEN_HEIGHT - SCREEN_MSG_Y, BLACK);
display.setCursor(SCREEN_MSG_X, SCREEN_MSG_Y);
}