mirror of https://github.com/espruino/BangleApps
health: 0.06: Fix daily health summary for movement
parent
81252d1dc6
commit
4b3a9a09e2
|
@ -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",
|
||||
|
|
|
@ -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!)
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue