diff --git a/logi-fix.js b/logi-fix.js index 91ace7c..6d20cd1 100644 --- a/logi-fix.js +++ b/logi-fix.js @@ -120,7 +120,7 @@ function sendColors(overrideColor) { // Send extra keys while(RGBDataExtra.length > 0) { applyExtra(); - const ledsToSend = Math.min(4, RGBDataExtra.length/3); + const ledsToSend = Math.min(4, RGBDataExtra.length/12); //packet = [0x11, 0xFF, 0x10, 0x1A].concat(RGBDataExtra.splice(0, ledsToSend*4)); packet = [0x11, 0xFF, 0x10, 0x1A, ledsToSend];