Skip to content

Commit

Permalink
v1.8.0
Browse files Browse the repository at this point in the history
+ Store tracker mag statuses in map (and get from map with `getTrackerMag()`)
  + Can now manually read mag status for BT instead of waiting for updates
+ Fix mag statuses on BT showing as undefined in some cases
  • Loading branch information
JovannMC committed May 2, 2024
1 parent e99255d commit 770e068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "haritorax-interpreter",
"version": "1.7.7",
"version": "1.8.0",
"homepage": "https://github.com/JovannMC/haritorax-interpreter",
"repository": "https://github.com/JovannMC/haritorax-interpreter",
"bugs": {
Expand Down
1 change: 1 addition & 0 deletions src/devices/haritorax-wireless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,7 @@ export default class HaritoraXWireless extends EventEmitter {
trackerService,
magnetometerCharacteristic
);
this.emit("mag", trackerName, magStatus);
return processMagData(magStatus, trackerName);
} else {
log(`Tracker ${trackerName} magnetometer status not found`);
Expand Down

0 comments on commit 770e068

Please sign in to comment.