logi-fix.js aktualisiert

This commit is contained in:
s-mendyka 2024-06-06 01:07:26 +02:00
parent dc730cf576
commit d2851084ac

View File

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