From cc259783cd68d4732482432a88515a0f736e9164 Mon Sep 17 00:00:00 2001 From: Ishidres <17363426+Ishidres@users.noreply.github.com> Date: Fri, 22 Mar 2024 17:59:09 +0100 Subject: [PATCH] wearTemp is 19.5 by default --- apps/sleeplog/boot.js | 4 ++-- apps/sleeplog/settings.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/sleeplog/boot.js b/apps/sleeplog/boot.js index 67a852132..dc0cd5ae1 100644 --- a/apps/sleeplog/boot.js +++ b/apps/sleeplog/boot.js @@ -13,7 +13,7 @@ global.sleeplog = { minConsec: 18E5, // [ms] minimal time to count for consecutive sleep deepTh: 100, // threshold for deep sleep lightTh: 200, // threshold for light sleep - wearTemp: null, // temperature threshold to count as worn + wearTemp: 19.5, // temperature threshold to count as worn }, require("Storage").readJSON("sleeplog.json", true) || {}) }; @@ -180,7 +180,7 @@ if (sleeplog.conf.enabled) { // check wearing status either based on HRM or temperature as set in settings checkIsWearing: function(returnFn, data) { - if (this.conf.wearTemp !== null) { + if (this.conf.wearTemp !== 19.5) { return returnFn(!Bangle.isCharging() && E.getTemperature() >= this.conf.wearTemp, data); } diff --git a/apps/sleeplog/settings.js b/apps/sleeplog/settings.js index e3811624a..736fead05 100644 --- a/apps/sleeplog/settings.js +++ b/apps/sleeplog/settings.js @@ -13,7 +13,7 @@ minConsec: 18E5, // [ms] minimal time to count for consecutive sleep deepTh: 100, // threshold for deep sleep lightTh: 200, // threshold for light sleep - wearTemp: null, // temperature threshold to count as worn + wearTemp: 19.5, // temperature threshold to count as worn // app settings breakToD: 12, // [h] time of day when to start/end graphs appTimeout: 0 // lock and backlight timeouts for the app