logi-fix.js aktualisiert

This commit is contained in:
s-mendyka 2024-06-06 01:45:56 +02:00
parent 06193c02fc
commit cb29c0d8bc

View File

@ -119,15 +119,15 @@ function sendColors(overrideColor) {
// // Send extra keys // // Send extra keys
while(RGBDataExtra.length > 0) { while(RGBDataExtra.length > 0) {
console.log(packet); //const ledsToSend = Math.min(1, RGBDataExtra.length/RGBDataExtra.length);
//const ledsToSend = Math.min(1, RGBDataExtra.length/RGBDataExtra.length+1);
const ledsToSend = 1; const ledsToSend = 1;
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);
device.pause(5);
} }
applyExtra(); //applyExtra();
} }
function applyExtra() { function applyExtra() {