Skip to content

Commit

Permalink
and when pushbutton
Browse files Browse the repository at this point in the history
  • Loading branch information
steadramon committed Oct 14, 2023
1 parent 5dd6542 commit 1b8ff32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ESPGeiger/src/ConfigManager/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ WiFiManagerParameter ESPGeigerParams[] =
#if GEIGER_TXPIN != -1
WiFiManagerParameter("geigerTX", "TX Pin", String(GEIGER_TXPIN).c_str(), 12),
#endif
#if defined(SSD1306_DISPLAY)
#if defined(SSD1306_DISPLAY) && defined(GEIGER_PUSHBUTTON)
WiFiManagerParameter("dispTimeout", "Display timeout (s)", "120", 10),
#endif
WiFiManagerParameter("<style>h3{margin-bottom:0;}</style><script>function getE(e){return document.getElementById(e)};function doCB(a,b){getE(a).checked='Y'==getE(b).value;}</script>")
Expand Down Expand Up @@ -164,7 +164,7 @@ void ConfigManager::startWebPortal()
const char* ratioChar = ConfigManager::getParamValueFromID("geigerRatio");
double ratio = atof(ratioChar);
gcounter.set_ratio(ratio);
#if defined(SSD1306_DISPLAY)
#if defined(SSD1306_DISPLAY) && defined(GEIGER_PUSHBUTTON)
int lcdTO = atoi(ConfigManager::getParamValueFromID("dispTimeout"));
display.setTimeout(lcdTO);
#endif
Expand Down Expand Up @@ -593,7 +593,7 @@ void ConfigManager::saveParams()
const char* ratioChar = ConfigManager::getParamValueFromID("geigerRatio");
double ratio = atof(ratioChar);
gcounter.set_ratio(ratio);
#if defined(SSD1306_DISPLAY)
#if defined(SSD1306_DISPLAY) && defined(GEIGER_PUSHBUTTON)
int lcdTO = atoi(ConfigManager::getParamValueFromID("dispTimeout"));
display.setTimeout(lcdTO);
#endif
Expand Down

0 comments on commit 1b8ff32

Please sign in to comment.