logi-fix.js aktualisiert
This commit is contained in:
parent
e2723bc600
commit
56e515ca2c
@ -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(1, RGBDataExtra.length/RGBDataExtra.length);
|
const ledsToSend = Math.min(4, RGBDataExtra.length/RGBDataExtra.length);
|
||||||
|
|
||||||
packet = [0x11, 0xFF, 0x10, 0x1A].concat(RGBDataExtra.splice(0, ledsToSend));
|
packet = [0x11, 0xFF, 0x10, 0x1A].concat(RGBDataExtra.splice(0, ledsToSend));
|
||||||
device.write(packet, 20);
|
device.write(packet, 20);
|
||||||
|
Loading…
Reference in New Issue
Block a user