health: 0.06: Fix daily health summary for movement

pull/881/head
Gordon Williams 2021-11-12 09:30:28 +00:00
parent 81252d1dc6
commit 4b3a9a09e2
3 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,7 @@
{
"id": "health",
"name": "Health Tracking",
"version": "0.05",
"version": "0.06",
"description": "Logs health data and provides an app to view it (BETA - requires firmware 2v11)",
"icon": "app.png",
"tags": "tool,system,health",

View File

@ -4,3 +4,4 @@
0.04: Add HRM graph view
Don't restart HRM when changing apps if we've already got a good BPM value
0.05: Fix daily summary calculation
0.06: Fix daily health summary for movement (a line got deleted!)

View File

@ -79,5 +79,6 @@ Bangle.on("health", health => {
if (health.bpmCnt)
health.bpm /= health.bpmCnt;
if (health.movCnt)
health.movement /= health.movCnt;
require("Storage").write(fn, getRecordData(health), sumPos, DB_FILE_LEN);
});