1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2026-08-18 10:22:31 +02:00

Fix display refresh

This commit is contained in:
Norbert Walter
2026-03-01 00:32:50 +00:00
parent b7fab08306
commit a4b99fb619
-6
View File
@@ -840,13 +840,7 @@ void OBP60Task(GwApi *api){
// Clear display
// getdisplay().fillRect(0, 0, getdisplay().width(), getdisplay().height(), commonData.bgcolor);
#ifndef DISPLAY_ST7796
getdisplay().fillScreen(commonData.bgcolor); // Clear display
#else
if (pageChanged) {
getdisplay().fillScreen(commonData.bgcolor); // Clear display after page switch
}
#endif
// Show header if enabled
if (pages[pageNumber].description && pages[pageNumber].description->header or systemPage){