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:
@@ -120,8 +120,11 @@ class FourLineDisplayUsermod : public Usermod {
|
|||||||
uint32_t screenTimeout = SCREEN_TIMEOUT_MS; // in ms
|
uint32_t screenTimeout = SCREEN_TIMEOUT_MS; // in ms
|
||||||
bool sleepMode = true; // allow screen sleep?
|
bool sleepMode = true; // allow screen sleep?
|
||||||
bool clockMode = false; // display clock
|
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;
|
bool enabled = true;
|
||||||
|
#endif
|
||||||
// Next variables hold the previous known values to determine if redraw is
|
// Next variables hold the previous known values to determine if redraw is
|
||||||
// required.
|
// required.
|
||||||
String knownSsid = "";
|
String knownSsid = "";
|
||||||
|
|||||||
@@ -132,7 +132,11 @@ class FourLineDisplayUsermod : public Usermod {
|
|||||||
bool sleepMode = true; // allow screen sleep?
|
bool sleepMode = true; // allow screen sleep?
|
||||||
bool clockMode = false; // display clock
|
bool clockMode = false; // display clock
|
||||||
bool showSeconds = true; // display clock with seconds
|
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;
|
bool enabled = true;
|
||||||
|
#endif
|
||||||
bool contrastFix = false;
|
bool contrastFix = false;
|
||||||
|
|
||||||
// Next variables hold the previous known values to determine if redraw is
|
// Next variables hold the previous known values to determine if redraw is
|
||||||
|
|||||||
Reference in New Issue
Block a user