logi-fix.js aktualisiert
This commit is contained in:
parent
2b2d29d635
commit
98d4215a7b
@ -118,7 +118,7 @@ function sendColors(overrideColor) {
|
|||||||
// Send extra keys
|
// Send extra keys
|
||||||
while(RGBDataExtra.length > 0) {
|
while(RGBDataExtra.length > 0) {
|
||||||
const ledsToSend = Math.min(4, RGBDataExtra.length/RGBDataExtra.length);
|
const ledsToSend = Math.min(4, RGBDataExtra.length/RGBDataExtra.length);
|
||||||
|
console.write(RGBDataExtra.length)
|
||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user