logi-fix.js aktualisiert
This commit is contained in:
parent
bf7f87f699
commit
f3be2d2deb
10
logi-fix.js
10
logi-fix.js
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user