logi-fix.js aktualisiert

This commit is contained in:
s-mendyka 2024-06-06 19:54:42 +02:00
parent 981dd1b2ab
commit 7edf9c5f2c

View File

@ -117,9 +117,9 @@ function sendColors(overrideColor) {
// Send extra keys
while(RGBDataExtra.length > 0) {
const ledsToSend = Math.min(4, RGBDataExtra.length/4);
const ledsToSend = Math.min(4, RGBDataExtra.length/RGBDataExtra.length);
packet = [0x11, 0xFF, 0x10, 0x1F].concat(RGBDataExtra.splice(0, ledsToSend*4));
packet = [0x11, 0xFF, 0x10, 0x1A].concat(RGBDataExtra.splice(0, ledsToSend*4));
device.write(packet, 20);