Skip to content

Commit

Permalink
Merge pull request #1735 from mmosca/fix-led-config
Browse files Browse the repository at this point in the history
Fix led direction saving issue reported in #1731
  • Loading branch information
mmosca committed Mar 2, 2023
2 parents 27e00d8 + 8b96de2 commit 4baf479
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/msp/MSPHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2700,15 +2700,15 @@ var mspHelper = (function (gui) {

bitIndex = MSP.ledDirectionLetters.indexOf(led.directions[directionLetterIndex]);
if (bitIndex >= 0) {
if(bitIndex < 2) {
mask |= bit_set(mask, bitIndex + 2);
if(bitIndex < 4) {
mask |= bit_set(mask, bitIndex + 28);
} else {
extra |= bit_set(exta, bitIndex - 2);
extra |= bit_set(extra, bitIndex - 4);
}
}
}

extra |= (0 << 4); // parameters
extra |= (0 << 2); // parameters

buffer.push(specificByte(mask, 0));
buffer.push(specificByte(mask, 1));
Expand Down

0 comments on commit 4baf479

Please sign in to comment.