Skip to content

Commit

Permalink
Revert "Add MSP support for led profile and status (#3671)" (#3692)
Browse files Browse the repository at this point in the history
This reverts commit b8da48a.
  • Loading branch information
haslinghuis committed Dec 24, 2023
1 parent fb8b32a commit 1c78f88
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/js/fc.js
Expand Up @@ -128,7 +128,6 @@ const FC = {
LED_COLORS: null,
LED_MODE_COLORS: null,
LED_STRIP: null,
LED_STRIP_CONFIG: null,
LED_CONFIG_VALUES: [],
MISC: null, // DEPRECATED
MIXER_CONFIG: null,
Expand Down Expand Up @@ -212,7 +211,6 @@ const FC = {
};

this.LED_STRIP = [];
this.LED_STRIP_CONFIG = [];
this.LED_COLORS = [];
this.LED_MODE_COLORS = [];

Expand Down
7 changes: 0 additions & 7 deletions src/js/msp/MSPHelper.js
Expand Up @@ -1273,10 +1273,6 @@ MspHelper.prototype.process_data = function(dataHandler) {
FC.LED_STRIP.push(led);
}
}

FC.LED_STRIP_CONFIG.status = data.readU8(); // basic or advanced
FC.LED_STRIP_CONFIG.profile = data.readU8();

break;
case MSPCodes.MSP_SET_LED_STRIP_CONFIG:
console.log('Led strip config saved');
Expand Down Expand Up @@ -2614,9 +2610,6 @@ MspHelper.prototype.sendLedStripConfig = function(onCompleteCallback) {
nextFunction = onCompleteCallback;
}

buffer.push8(FC.LED_STRIP_CONFIG.status); // basic or advanced
buffer.push8(FC.LED_STRIP_CONFIG.profile);

MSP.send_message(MSPCodes.MSP_SET_LED_STRIP_CONFIG, buffer, false, nextFunction);
}
};
Expand Down

0 comments on commit 1c78f88

Please sign in to comment.