From 83baacdfa4615dd6445eb5ed50eae4563db0b2f8 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 2 Jan 2023 22:57:10 +0100 Subject: [PATCH] Fix clear msg area --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e3e9039..40f3a18 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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); }