Fixes and improvements (#445)
- Remove unnecessary CS work-around for Cardputers - Don't compile WifiMock when not necessary - Fix for running apps on devices without SPIRAM - Disable backlight dimming by default
This commit is contained in:
committed by
GitHub
parent
2ca8ae62fb
commit
719f7bcece
@@ -1,3 +1,7 @@
|
||||
#ifdef ESP_PLATFORM
|
||||
#include <sdkconfig.h>
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_ESP_WIFI_ENABLED
|
||||
|
||||
#include <Tactility/service/wifi/Wifi.h>
|
||||
|
||||
@@ -92,7 +92,7 @@ bool load(DisplaySettings& settings) {
|
||||
}
|
||||
}
|
||||
|
||||
bool timeout_enabled = true;
|
||||
bool timeout_enabled = false;
|
||||
auto timeout_enabled_entry = map.find(SETTINGS_KEY_TIMEOUT_ENABLED);
|
||||
if (timeout_enabled_entry != map.end()) {
|
||||
timeout_enabled = (timeout_enabled_entry->second == "1" || timeout_enabled_entry->second == "true" || timeout_enabled_entry->second == "True");
|
||||
@@ -118,7 +118,7 @@ DisplaySettings getDefault() {
|
||||
.orientation = getDefaultOrientation(),
|
||||
.gammaCurve = 1,
|
||||
.backlightDuty = 200,
|
||||
.backlightTimeoutEnabled = true,
|
||||
.backlightTimeoutEnabled = false,
|
||||
.backlightTimeoutMs = 60000
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user