logi-fix.js aktualisiert

This commit is contained in:
s-mendyka 2024-06-06 19:52:51 +02:00
parent bf7f87f699
commit f3be2d2deb

View File

@ -115,12 +115,14 @@ function sendColors(overrideColor) {
device.set_endpoint(1, 0x0602, 0xff43);
// // Send extra keys
// Send extra keys
while(RGBDataExtra.length > 0) {
//const ledsToSend = Math.min(1, RGBDataExtra.length/RGBDataExtra.length);
const ledsToSend = 1;
packet = [0x11, 0xFF, 0x10, 0x1A].concat(RGBDataExtra.splice(0, ledsToSend*4));
const ledsToSend = Math.min(4, RGBDataExtra.length/4);
packet = [0x11, 0xFF, 0x10, 0x1F].concat(RGBDataExtra.splice(0, ledsToSend*4));
device.write(packet, 20);
device.pause(1);
}