mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-14 20:10:11 +03:00
Merge pull request #1735 from mmosca/fix-led-config
Fix led direction saving issue reported in #1731
This commit is contained in:
commit
4baf479136
1 changed files with 4 additions and 4 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue