usermod 4ld: start disabled on -S3

workaround for a nasty bug in idf v4 - device hangs for several minutes if you start with display not attached.
This commit is contained in:
Frank
2022-12-18 18:35:28 +01:00
parent 2c9cde4096
commit ae39fe8a0c
2 changed files with 8 additions and 1 deletions

View File

@@ -120,8 +120,11 @@ class FourLineDisplayUsermod : public Usermod {
uint32_t screenTimeout = SCREEN_TIMEOUT_MS; // in ms
bool sleepMode = true; // allow screen sleep?
bool clockMode = false; // display clock
#if defined(ARDUINO_ARCH_ESP32) && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 0, 0)
bool enabled = false; // WLEDMM workaround for I2C bugs in IDF v4.4.1
#else
bool enabled = true;
#endif
// Next variables hold the previous known values to determine if redraw is
// required.
String knownSsid = "";

View File

@@ -132,7 +132,11 @@ class FourLineDisplayUsermod : public Usermod {
bool sleepMode = true; // allow screen sleep?
bool clockMode = false; // display clock
bool showSeconds = true; // display clock with seconds
#if defined(ARDUINO_ARCH_ESP32) && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 0, 0)
bool enabled = false; // WLEDMM workaround for I2C bugs in IDF v4.4.1
#else
bool enabled = true;
#endif
bool contrastFix = false;
// Next variables hold the previous known values to determine if redraw is