From 7bd10136b9dda97921074d8a7ccbbe9bc62e2358 Mon Sep 17 00:00:00 2001 From: druckgott Date: Mon, 18 Nov 2024 18:18:19 +0100 Subject: [PATCH] Update MSPHelper.js --- src/js/msp/MSPHelper.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/msp/MSPHelper.js b/src/js/msp/MSPHelper.js index 23d0ab7af7..f565d83cd9 100644 --- a/src/js/msp/MSPHelper.js +++ b/src/js/msp/MSPHelper.js @@ -1260,7 +1260,7 @@ MspHelper.prototype.process_data = function(dataHandler) { } } - const overlayMask = (mask >> 12) & 0x3F; + const overlayMask = (mask >> 13) & 0x3F; for (let overlayLetterIndex = 0; overlayLetterIndex < ledOverlayLetters.length; overlayLetterIndex++) { if (bit_check(overlayMask, overlayLetterIndex)) { functions.push(ledOverlayLetters[overlayLetterIndex]); @@ -2591,7 +2591,7 @@ MspHelper.prototype.sendLedStripConfig = function(onCompleteCallback) { for (let overlayLetterIndex = 0; overlayLetterIndex < led.functions.length; overlayLetterIndex++) { const bitIndex = ledOverlayLetters.indexOf(led.functions[overlayLetterIndex]); if (bitIndex >= 0) { - mask |= bit_set(mask, bitIndex + 12); + mask |= bit_set(mask, bitIndex + 13); } } @@ -2609,7 +2609,7 @@ MspHelper.prototype.sendLedStripConfig = function(onCompleteCallback) { for (let overlayLetterIndex = 0; overlayLetterIndex < led.functions.length; overlayLetterIndex++) { const bitIndex = ledOverlayLetters.indexOf(led.functions[overlayLetterIndex]); if (bitIndex >= 0) { - mask |= bit_set(mask, bitIndex + 12); + mask |= bit_set(mask, bitIndex + 13); } }