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

One value page working

This commit is contained in:
norbert-walter
2022-02-13 22:15:09 +01:00
parent 10d6b3fa50
commit 9f6aebe978
11 changed files with 155 additions and 62 deletions

View File

@@ -13,14 +13,6 @@ typedef struct{
} PageData;
typedef struct{
}OutputData;
typedef struct{
String distanceformat="m";
String lengthformat="m";
//...
OutputData output;
GwApi::Status status;
GwLog *logger=NULL;
GwConfigHandler *config=NULL;
@@ -29,7 +21,7 @@ typedef struct{
//a base class that all pages must inherit from
class Page{
public:
virtual void display(CommonData &commonData, PageData &pageData)=0;
virtual void displayPage(CommonData &commonData, PageData &pageData)=0;
virtual void displayNew(CommonData &commonData, PageData &pageData){}
//return -1 if handled by the page
virtual int handleKey(int key){return key;}