Skip to content

Commit

Permalink
don't process DONGLE/null "button" data
Browse files Browse the repository at this point in the history
  • Loading branch information
JovannMC committed Aug 9, 2024
1 parent e79470e commit bf03e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HaritoraX.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1470,7 +1470,7 @@ function processInfoData(data: string, trackerName: string) {
**/

function processButtonData(data: string, trackerName: string, characteristic?: string) {
if (!canSendButtonData) return false;
if (!canSendButtonData || !trackerName || trackerName === "DONGLE") return;

let currentButtons = trackerButtons.get(trackerName) || [0, 0, 0];
let buttonPressed = undefined;
Expand Down

0 comments on commit bf03e1e

Please sign in to comment.