mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-03-28 18:06:37 +01:00
Code improvements: commonData, config and logger in page class
This commit is contained in:
@@ -12,8 +12,6 @@
|
||||
class PageEPropulsion : public Page
|
||||
{
|
||||
private:
|
||||
GwConfigHandler *config;
|
||||
GwLog *logger;
|
||||
bool simulation = false;
|
||||
bool holdvalues = false;
|
||||
String flashLED;
|
||||
@@ -48,11 +46,8 @@ private:
|
||||
}
|
||||
|
||||
public:
|
||||
PageEPropulsion(CommonData &common)
|
||||
PageEPropulsion(CommonData &common) : Page(common)
|
||||
{
|
||||
commonData = &common;
|
||||
config = commonData->config;
|
||||
logger = commonData->logger;
|
||||
logger->logDebug(GwLog::LOG,"Instantiate PageEPropulsion");
|
||||
|
||||
// preload configuration data
|
||||
|
||||
Reference in New Issue
Block a user