From e6f864d44181b09db50b3867b40317aab2893401 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Thu, 15 Aug 2024 09:53:47 +0200 Subject: [PATCH] sixths: Fix pressure change handling. --- apps/sixths/README.md | 2 -- apps/sixths/sixths.app.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/sixths/README.md b/apps/sixths/README.md index 8a7d2185a..9fd7631f9 100644 --- a/apps/sixths/README.md +++ b/apps/sixths/README.md @@ -83,8 +83,6 @@ Todo: *) "myprofile" to read step length -*) +-3.5hPa 1012hPa - ?) display gps alt + offset to baro ?) start logging baro pressure diff --git a/apps/sixths/sixths.app.js b/apps/sixths/sixths.app.js index 49a209a9a..ea9943fdd 100644 --- a/apps/sixths/sixths.app.js +++ b/apps/sixths/sixths.app.js @@ -772,7 +772,7 @@ function draw() { let o = Bangle.getOptions(); let pr = o.seaLevelPressure; - if (now.hour < 6) + if (now.getHours() < 10) night_pressure = pr; if (night_pressure) msg += (pr-night_pressure).toFixed(1) + fmt.icon_hpa + " ";