logi-fix.js aktualisiert
This commit is contained in:
parent
06193c02fc
commit
cb29c0d8bc
@ -119,15 +119,15 @@ function sendColors(overrideColor) {
|
||||
|
||||
// // Send extra keys
|
||||
while(RGBDataExtra.length > 0) {
|
||||
console.log(packet);
|
||||
//const ledsToSend = Math.min(1, RGBDataExtra.length/RGBDataExtra.length+1);
|
||||
//const ledsToSend = Math.min(1, RGBDataExtra.length/RGBDataExtra.length);
|
||||
const ledsToSend = 1;
|
||||
packet = [0x11, 0xFF, 0x10, 0x1A].concat(RGBDataExtra.splice(0, ledsToSend*4));
|
||||
device.write(packet, 20);
|
||||
device.pause(5);
|
||||
}
|
||||
|
||||
|
||||
applyExtra();
|
||||
//applyExtra();
|
||||
}
|
||||
|
||||
function applyExtra() {
|
||||
|
Loading…
Reference in New Issue
Block a user