diff --git a/Corsair_Virtuoso_XT_Headset.js b/Corsair_Virtuoso_XT_Headset.js index 58231e8..d7f705a 100644 --- a/Corsair_Virtuoso_XT_Headset.js +++ b/Corsair_Virtuoso_XT_Headset.js @@ -161,6 +161,7 @@ function SetSoftwareMode() { device.write([0x02, headsetMode, 0x02, 0x14, 0x00, 0x00], 64); // ? device.write([0x02, headsetMode, 0x01, 0x03, 0x00, 0x02], 64); // Enable Software Mode device.write([0x02, headsetMode, 0x0D, 0x00, 0x01], 64); //Open lighting endpoint + device.pause(100); device.write([0x02, headsetMode, 0x01, 0x02, 0x00, 0xe8, 0x03], 64); //Hardware Brightness 100% @@ -265,14 +266,7 @@ export function ImageUrl() { export function Shutdown() { sendColor(true); - - const packet = new Array(64).fill(0x00); - packet[0] = 0x02; - packet[1] = headsetMode; - packet[2] = 0x01; - packet[3] = 0x03; - packet[5] = 0x01; - device.write(packet, 64); + device.write([0x02, headsetMode, 0x01, 0x03, 0x00, 0x01], 64); } export function Validate(endpoint) {