Wait up to 25 ms for each packet echo

With a 10 ms wait an occasional glitch remained; the keyboard is likely
sometimes slower to echo, so the next packet still arrived too early.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mangavalkandClaude Opus 5.5 committed 2026-10-28 23:27:56 +01:00
1 parent 0b2a90ba94
commit 668cfd76b2
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -163,7 +163,7 @@ function writeRGBPackage(RGBData) {
// The keyboard echoes each packet back; wait for it (as OpenRGB does) so the next
// packet doesn't arrive while it's still processing this one
device.read([0x04], 64, 10);
device.read([0x04], 64, 25);
// device.pause() rounds up to the Windows timer tick (up to ~15 ms), so only pause when asked
if (lowFPS) { device.pause(3); }