From d2851084aca22d2c6681bae24aab2275407769c1 Mon Sep 17 00:00:00 2001 From: s-mendyka Date: Thu, 6 Jun 2024 01:07:26 +0200 Subject: [PATCH] logi-fix.js aktualisiert --- logi-fix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logi-fix.js b/logi-fix.js index a708702..3817742 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/4); + const ledsToSend = Math.min(1, RGBDataExtra.length/8); packet = [0x11, 0xFF, 0x10, 0x1A].concat(RGBDataExtra.splice(0, ledsToSend*4)); device.write(packet, 20);