Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
Tekk-Know authored Jul 4, 2024
1 parent 19dee66 commit f142ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit f142ea2

Please sign in to comment.