From f142ea289f92e9f1ec850afc94216c84a2aa8add Mon Sep 17 00:00:00 2001 From: Tekk-Know Date: Thu, 4 Jul 2024 13:29:42 -0400 Subject: [PATCH] Update main.js Bug fix --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 15b54b7..e088067 100644 --- a/src/main.js +++ b/src/main.js @@ -151,7 +151,7 @@ const RazerProducts = { function GetMessage(mouse) { // Function that creates and returns the message to be sent to the device - let msg = Buffer.from([0x00, mouse.transactionId || 0xFF, 0x00, 0x00, 0x00, 0x02, 0x07, 0x80]); + let msg = Buffer.from([0x00, mouse.transactionId, 0x00, 0x00, 0x00, 0x02, 0x07, 0x80]); let crc = 0; for (let i = 2; i < msg.length; i++) {