Skip to content

Commit 24d825f

Browse files
committed
Add 4Mb option for CH9102x
1 parent 3fbb9f2 commit 24d825f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

wled00/data/settings_sync.htm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ <h3>Serial</h3>
173173
<option value=10000>1000000</option>
174174
<option value=15000>1500000</option>
175175
<option value=20000>2000000</option>
176+
<option value=40000>4000000</option>
176177
</select><br>
177178
<i>Keep at 115200 to use Improv. Some boards may not support high rates.</i>
178179
<hr>

wled00/html_settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ Press the pushlink button on the bridge, after that save this page!</b><br>
350350
</option><option value="5000">500000</option><option value="5760">576000
351351
</option><option value="9216">921600</option><option value="10000">1000000
352352
</option><option value="15000">1500000</option><option value="20000">2000000
353-
</option></select><br><i>
353+
</option><option value="40000">4000000</option></select><br><i>
354354
Keep at 115200 to use Improv. Some boards may not support high rates.</i><hr>
355355
<button type="button" onclick="B()">Back</button><button type="submit">Save
356356
</button></form></body></html>)=====";

wled00/set.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage)
301301
#endif
302302

303303
t = request->arg(F("BD")).toInt();
304-
if (t >= 96 && t <= 15000) serialBaud = t;
304+
if (t >= 96 && t <= 40000) serialBaud = t;
305305
updateBaudRate(serialBaud *100);
306306
}
307307

wled00/wled_serial.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,9 @@ void handleSerial()
116116
case AwaProtocol::FLETCHER2:
117117
if (input == fletcher2)
118118
{
119-
if (!realtimeMode && bri == 0) strip.setBrightness(briLast);
120-
realtimeLock(realtimeTimeoutMs, REALTIME_MODE_ADALIGHT);
119+
realtimeLock(realtimeTimeoutMs, REALTIME_MODE_ADALIGHT);
121120

122-
if (!realtimeOverride) strip.show();
121+
if (!realtimeOverride) strip.show();
123122
}
124123
state = AwaProtocol::HEADER_A;
125124
break;

0 commit comments

Comments
 (0)