Skip to content

Commit 1679f89

Browse files
authored
Update movement check to include bpm condition
1 parent d4208ff commit 1679f89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sleeplog/boot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ if (global.sleeplog.conf.enabled) {
155155
// check if global variable accessable
156156
if (!global.sleeplog) return new Error("sleeplog: Can't process health event, global object missing!");
157157
// check if movement is available
158-
if (!data.movement) return;
158+
if (!data.movement&&!data.bpm) return;
159159
// add timestamp rounded to 10min, corrected to 10min ago
160160
data.timestamp = data.timestamp || ((Date.now() / 6E5 | 0) - 1) * 6E5;
161161
// add preliminary status depending on charging and movement thresholds

0 commit comments

Comments
 (0)