diff --git a/apps.json b/apps.json index 61256571b..0c2aaf17f 100644 --- a/apps.json +++ b/apps.json @@ -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", @@ -2852,7 +2852,7 @@ "icon": "bluetooth.png", "type": "bootloader", "tags": "battery,ble,bluetooth,gatt", - "supports": ["BANGLEJS"], + "supports": ["BANGLEJS","BANGLEJS2"], "readme": "README.md", "storage": [ {"name":"gattbat.boot.js","url":"boot.js"} diff --git a/apps/health/ChangeLog b/apps/health/ChangeLog index 808282b64..ef1b1bffc 100644 --- a/apps/health/ChangeLog +++ b/apps/health/ChangeLog @@ -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!) diff --git a/apps/health/boot.js b/apps/health/boot.js index a8d78f685..386d75833 100644 --- a/apps/health/boot.js +++ b/apps/health/boot.js @@ -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); });