From 2c9ec746b6a3595d182383820707e1f0e18668e7 Mon Sep 17 00:00:00 2001 From: stweedo Date: Tue, 27 Jun 2023 08:34:42 -0500 Subject: [PATCH] Use Bangle.getHealthStatus("day").steps) instead --- apps/boxclk/ChangeLog | 1 + apps/boxclk/app.js | 2 +- apps/boxclk/metadata.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/boxclk/ChangeLog b/apps/boxclk/ChangeLog index 794203d36..cc73fbc08 100644 --- a/apps/boxclk/ChangeLog +++ b/apps/boxclk/ChangeLog @@ -2,3 +2,4 @@ 0.02: New config options such as step, meridian, short/long formats, custom prefix/suffix 0.03: Allows showing the month in short or long format by setting `"shortMonth"` to true or false 0.04: Improves touchscreen drag handling for background apps such as Pattern Launcher +0.05: Fixes step count not resetting after a new day starts diff --git a/apps/boxclk/app.js b/apps/boxclk/app.js index 6321be7c3..12c69e789 100644 --- a/apps/boxclk/app.js +++ b/apps/boxclk/app.js @@ -249,7 +249,7 @@ boxes.batt.string = modString(boxes.batt, E.getBattery()); } if (boxes.step) { - boxes.step.string = modString(boxes.step, Bangle.getStepCount()); + boxes.step.string = modString(boxes.step, Bangle.getHealthStatus("day").steps); } boxKeys.forEach((boxKey) => { let boxItem = boxes[boxKey]; diff --git a/apps/boxclk/metadata.json b/apps/boxclk/metadata.json index 06db0b2fe..dd81ac436 100644 --- a/apps/boxclk/metadata.json +++ b/apps/boxclk/metadata.json @@ -1,7 +1,7 @@ { "id": "boxclk", "name": "Box Clock", - "version": "0.04", + "version": "0.05", "description": "A customizable clock with configurable text boxes that can be positioned to show your favorite background", "icon": "app.png", "screenshots": [