Skip to content

Commit ae39fe8

Browse files
committed
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.
1 parent 2c9cde4 commit ae39fe8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

usermods/usermod_v2_four_line_display/usermod_v2_four_line_display.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,11 @@ class FourLineDisplayUsermod : public Usermod {
120120
uint32_t screenTimeout = SCREEN_TIMEOUT_MS; // in ms
121121
bool sleepMode = true; // allow screen sleep?
122122
bool clockMode = false; // display clock
123+
#if defined(ARDUINO_ARCH_ESP32) && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 0, 0)
124+
bool enabled = false; // WLEDMM workaround for I2C bugs in IDF v4.4.1
125+
#else
123126
bool enabled = true;
124-
127+
#endif
125128
// Next variables hold the previous known values to determine if redraw is
126129
// required.
127130
String knownSsid = "";

usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,11 @@ class FourLineDisplayUsermod : public Usermod {
132132
bool sleepMode = true; // allow screen sleep?
133133
bool clockMode = false; // display clock
134134
bool showSeconds = true; // display clock with seconds
135+
#if defined(ARDUINO_ARCH_ESP32) && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 0, 0)
136+
bool enabled = false; // WLEDMM workaround for I2C bugs in IDF v4.4.1
137+
#else
135138
bool enabled = true;
139+
#endif
136140
bool contrastFix = false;
137141

138142
// Next variables hold the previous known values to determine if redraw is

0 commit comments

Comments
 (0)