mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-03-29 03:16:35 +02:00
Move config code into page constructors and some code cleanup
This commit is contained in:
@@ -13,7 +13,7 @@ class PageSkyView : public Page
|
||||
public:
|
||||
PageSkyView(CommonData &common) : Page(common)
|
||||
{
|
||||
logger->logDebug(GwLog::LOG,"Instantiate PageSkyView");
|
||||
logger->logDebug(GwLog::LOG, "Instantiate PageSkyView");
|
||||
}
|
||||
|
||||
int handleKey(int key){
|
||||
@@ -27,11 +27,6 @@ public:
|
||||
|
||||
int displayPage(PageData &pageData) {
|
||||
|
||||
// Get config data
|
||||
String flashLED = config->getString(config->flashLED);
|
||||
String displaycolor = config->getString(config->displaycolor);
|
||||
String backlightMode = config->getString(config->backlight);
|
||||
|
||||
// Optical warning by limit violation (unused)
|
||||
if(String(flashLED) == "Limit Violation"){
|
||||
setBlinkingLED(false);
|
||||
|
||||
Reference in New Issue
Block a user