mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-08-18 18:32:30 +02:00
Fix display refresh
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user