Skip to content

Commit

Permalink
Merge pull request #4328 from blazoncek/clarify
Browse files Browse the repository at this point in the history
Fix for #4321 - unclear use of comma operator
  • Loading branch information
netmindz authored Nov 27, 2024
2 parents 6cbdd82 + b1dd27b commit 9455843
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions wled00/data/settings_leds.htm
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,14 @@
if (loc) d.Sf.action = getURL('/settings/leds');
}
function bLimits(b,v,p,m,l,o=5,d=2,a=6) {
// maxB - max buses (can be changed if using ESP32 parallel I2S)
// maxD - max digital channels (can be changed if using ESP32 parallel I2S)
// maxA - max analog channels
// maxV - min virtual buses
// maxPB - max LEDs per bus
// maxM - max LED memory
// maxL - max LEDs (will serve to determine ESP >1664 == ESP32)
// maxCO - max Color Order mappings
oMaxB = maxB = b; maxD = d, maxA = a, maxV = v; maxM = m; maxPB = p; maxL = l; maxCO = o;
oMaxB = maxB = b; // maxB - max buses (can be changed if using ESP32 parallel I2S)
maxD = d; // maxD - max digital channels (can be changed if using ESP32 parallel I2S)
maxA = a; // maxA - max analog channels
maxV = v; // maxV - min virtual buses
maxPB = p; // maxPB - max LEDs per bus
maxM = m; // maxM - max LED memory
maxL = l; // maxL - max LEDs (will serve to determine ESP >1664 == ESP32)
maxCO = o; // maxCO - max Color Order mappings
}
function pinsOK() {
var ok = true;
Expand Down

0 comments on commit 9455843

Please sign in to comment.