Skip to content

Commit 316ef24

Browse files
committed
Prevent random-like DMX values from settings
1 parent a6963f0 commit 316ef24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/set.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage)
648648
for (int i=0; i<MAX_CHANNELS_PER_FIXTURE; i++) {
649649
String argname = "DV" + String((i+1));
650650
t = request->arg(argname).toInt();
651-
DMXChannelsValue[i] = t;
651+
DMXChannelsValue[i] = constrain(t, 0, 255);
652652
}
653653
}
654654
#endif

0 commit comments

Comments
 (0)