logi-fix.js aktualisiert

This commit is contained in:
s-mendyka 2024-06-06 19:55:58 +02:00
parent 7edf9c5f2c
commit 2b2d29d635

View File

@ -105,13 +105,13 @@ function sendColors(overrideColor) {
device.set_endpoint(1, 0x0604, 0xff43);
// // Send normal keys
// while(RGBData.length > 0) {
// const ledsToSend = Math.min(14, RGBData.length/4);
// packet = [0x12, 0xFF, 0x0C, 0x3E, 0x00, 0x01, 0x00, ledsToSend].concat(RGBData.splice(0, ledsToSend*4));
// device.write(packet, 64);
// device.pause(1);
// }
// Send normal keys
while(RGBData.length > 0) {
const ledsToSend = Math.min(14, RGBData.length/4);
packet = [0x12, 0xFF, 0x0C, 0x3E, 0x00, 0x01, 0x00, ledsToSend].concat(RGBData.splice(0, ledsToSend*4));
device.write(packet, 64);
device.pause(1);
}
device.set_endpoint(1, 0x0602, 0xff43);