1
0
Fork 0

Merge branch 'espruino:master' into master

master
Andrew Gregory 2021-11-12 18:31:29 +08:00 committed by GitHub
commit c11462dc10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 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",
@ -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"}

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);
});