1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 23:13:07 +01:00

OBP40 integration code and improvements

This commit is contained in:
2025-01-20 12:49:30 +01:00
parent 87a7a79358
commit 1545855326
7 changed files with 3526 additions and 5 deletions

View File

@@ -103,6 +103,7 @@ class Page{
virtual void displayPage(PageData &pageData)=0;
virtual void displayNew(PageData &pageData){}
virtual void setupKeys() {
#ifdef HARDWARE_V21
commonData->keydata[0].label = "";
commonData->keydata[1].label = "";
commonData->keydata[2].label = "#LEFT";
@@ -113,6 +114,12 @@ class Page{
} else {
commonData->keydata[5].label = "";
}
#endif
#ifdef HARDWARE_LIGHT
commonData->keydata[0].label = "";
commonData->keydata[1].label = "";
#endif
}
//return -1 if handled by the page
virtual int handleKey(int key){return key;}