Fix for config.json, depensencies to other ode
This commit is contained in:
parent
cf7ef8d849
commit
f116e41964
|
@ -146,7 +146,7 @@ void deepSleep(CommonData &common){
|
|||
getdisplay().powerOff(); // Display power off
|
||||
setPortPin(OBP_POWER_50, false); // Power off ePaper display
|
||||
// Stop system
|
||||
esp_deep_sleep_start(); // Deep Sleep with weakup via touch pin
|
||||
esp_deep_sleep_start(); // Deep Sleep with weakup via touch pin
|
||||
}
|
||||
#endif
|
||||
#ifdef BOARD_OBP40S3
|
||||
|
@ -166,7 +166,7 @@ void deepSleep(CommonData &common){
|
|||
getdisplay().print("Sleep Mode");
|
||||
getdisplay().setFont(&Ubuntu_Bold8pt7b);
|
||||
getdisplay().setCursor(65, 175);
|
||||
getdisplay().print("For wakeup press wheel and wait 5s");
|
||||
getdisplay().print("to wake up press wheel and wait 5s");
|
||||
getdisplay().nextPage(); // Partial update
|
||||
getdisplay().powerOff(); // Display power off
|
||||
setPortPin(OBP_POWER_EPD, false); // Power off ePaper display
|
||||
|
|
|
@ -78,7 +78,7 @@ void OBP60Init(GwApi *api){
|
|||
}
|
||||
|
||||
#ifdef BOARD_OBP40S3
|
||||
//String sdcard = config->getConfigItem(config->useSDCard, true)->asString();
|
||||
// String sdcard = config->getConfigItem(config->useSDCard, true)->asString();
|
||||
String sdcard = "on";
|
||||
if (sdcard == "on") {
|
||||
SPIClass SD_SPI = SPIClass(HSPI);
|
||||
|
@ -415,7 +415,8 @@ void OBP60Task(GwApi *api){
|
|||
String fastrefresh = api->getConfig()->getConfigItem(api->getConfig()->fastRefresh,true)->asString();
|
||||
uint fullrefreshtime = uint(api->getConfig()->getConfigItem(api->getConfig()->fullRefreshTime,true)->asInt());
|
||||
#ifdef BOARD_OBP40S3
|
||||
bool syspage_enabled = config->getBool(config->systemPage);
|
||||
// bool syspage_enabled = config->getBool(config->systemPage);
|
||||
bool syspage_enabled = false;
|
||||
#endif
|
||||
|
||||
#ifdef DISPLAY_GDEY042T81
|
||||
|
|
Loading…
Reference in New Issue