Corsair_Virtuoso_XT_Headset.js aktualisiert

This commit is contained in:
s-mendyka 2024-06-19 22:52:51 +02:00
parent 99367f298d
commit a1e66faa43

View File

@ -177,30 +177,34 @@ export function onSidetoneAmountChanged() {
function SetSoftwareMode() {
device.set_endpoint(3, 0x0001, 0xFF42);
const packet = [];
packet[0] = 0x02;
packet[1] = headsetMode;
packet[2] = 0x01;
packet[3] = 0x03;
packet[5] = 0x02;
device.write(packet, 64);
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
packet[2] = 0x0D;
packet[3] = 0x00;
packet[4] = 0x01;
packet[5] = 0x00;
device.write(packet, 64);
// const packet = [];
// packet[0] = 0x02;
// packet[1] = headsetMode;
// packet[2] = 0x01;
// packet[3] = 0x03;
// packet[5] = 0x02;
// device.write(packet, 64);
packet[2] = 0x0D;
packet[3] = 0x00;
packet[4] = 0x05;
device.write(packet, 64);
// packet[2] = 0x0D;
// packet[3] = 0x00;
// packet[4] = 0x01;
// packet[5] = 0x00;
// device.write(packet, 64);
packet[2] = 0x01;
packet[3] = 0x03;
packet[4] = 0x00;
packet[5] = 0x02;
device.write(packet, 64);
// packet[2] = 0x0D;
// packet[3] = 0x00;
// packet[4] = 0x05;
// device.write(packet, 64);
// packet[2] = 0x01;
// packet[3] = 0x03;
// packet[4] = 0x00;
// packet[5] = 0x02;
// device.write(packet, 64);
}
function readDevice() {