Skip to content

Commit

Permalink
fix duplicate device connections
Browse files Browse the repository at this point in the history
  • Loading branch information
JovannMC committed Apr 21, 2024
1 parent fe1e348 commit 8c7c7c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mode/bluetooth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ export default class Bluetooth extends EventEmitter {
"HaritoraX (1.0/1.1/1.1b) detected. Device is not fully supported and you may experience issues."
);

activeDevices.push([localName, peripheral, [], []]);

peripheral.connect((err: any) => {
if (err) {
error(`Error connecting to ${localName}: ${err}`);
Expand Down

0 comments on commit 8c7c7c1

Please sign in to comment.