mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-21 02:07:12 +02:00
change default value of display luminance/contrast to 140.
The previous value 60 is way too low and seems to stem from times where it was interpreted as % instead of now 0-255
This commit is contained in:
parent
815a6f3444
commit
276b3dca42
2 changed files with 3 additions and 3 deletions
|
@ -465,7 +465,7 @@ class settings {
|
|||
mCfg.led.luminance = 255;
|
||||
|
||||
mCfg.plugin.display.pwrSaveAtIvOffline = false;
|
||||
mCfg.plugin.display.contrast = 60;
|
||||
mCfg.plugin.display.contrast = 140;
|
||||
mCfg.plugin.display.screenSaver = 1; // default: 1 .. pixelshift for OLED for downward compatibility
|
||||
mCfg.plugin.display.graph_ratio = 0;
|
||||
mCfg.plugin.display.graph_size = 2;
|
||||
|
@ -476,7 +476,7 @@ class settings {
|
|||
mCfg.plugin.display.disp_reset = DEF_PIN_OFF;
|
||||
mCfg.plugin.display.disp_busy = DEF_PIN_OFF;
|
||||
mCfg.plugin.display.disp_dc = DEF_PIN_OFF;
|
||||
mCfg.plugin.display.pirPin = DEF_MOTION_SENSOR_PIN;
|
||||
mCfg.plugin.display.pirPin = DEF_PIN_OFF;
|
||||
}
|
||||
|
||||
void loadAddedDefaults() {
|
||||
|
|
|
@ -600,7 +600,7 @@ class Web {
|
|||
mConfig->plugin.display.rot = request->arg("disp_rot").toInt();
|
||||
mConfig->plugin.display.type = request->arg("disp_typ").toInt();
|
||||
mConfig->plugin.display.contrast = (mConfig->plugin.display.type == 0) || // contrast available only according optionsMap in setup.html, otherwise default value
|
||||
(mConfig->plugin.display.type == 10) ? 60 : request->arg("disp_cont").toInt();
|
||||
(mConfig->plugin.display.type == 10) ? 140 : request->arg("disp_cont").toInt();
|
||||
mConfig->plugin.display.screenSaver = ((mConfig->plugin.display.type == 1) || // screensaver available only according optionsMap in setup.html, otherwise default value
|
||||
(mConfig->plugin.display.type == 2) ||
|
||||
(mConfig->plugin.display.type == 4) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue