Corsair_Virtuoso_XT_Headset.js aktualisiert

This commit is contained in:
s-mendyka 2024-05-27 23:10:02 +02:00
parent 65f02a0368
commit d89cba7b5d

View File

@ -33,7 +33,7 @@ function hexToRgb(hex) {
const vLedNames = ["Left Cans", "Right Can", "Mic"];
const vLedPositions = [
[0, 2], [2, 2], [1, 0]
[0, 2], [2, 2]
];
export function LedNames() {
@ -98,19 +98,17 @@ function sendColors(shutdown = false){
const iX = vLedPositions[zone_idx][0];
const iY = vLedPositions[zone_idx][1];
var col;
// if(zone_idx = 2 && !micLedControl) {
// col = [0,80,0];
// }else{
if(shutdown){
col = hexToRgb(shutdownColor);
}else if (LightingMode === "Forced") {
col = hexToRgb(forcedColor);
if(zone_idx = 2 && !micLedControl) {
col = [0,80,0];
}else{
col = device.color(iX, iY);
if(shutdown){
col = hexToRgb(shutdownColor);
}else if (LightingMode === "Forced") {
col = hexToRgb(forcedColor);
}else{
col = device.color(iX, iY);
}
}
// }
red[zone_idx] = col[0];
green[zone_idx] = col[1];
blue[zone_idx] = col[2];