You are reading a single comment by @Ganblejs and its replies.
Click here to read the full conversation.
-
Thanks, shouldn't the HRM key added to line 23 below have taken care of missing hrm settings?
let settings = Object.assign({ record: true, B1: "dist", B2: "time", B3: "pacea", B4: "bpm", B5: "step", B6: "caden", paceLength: 1000, notify: { dist: { value: 0, notifications: [], }, step: { value: 0, notifications: [], }, time: { value: 0, notifications: [], }, HRM: { min: 65, max: 170, } }, }, require("Storage").readJSON("run.json", 1) || {});
(https://github.com/thyttan/BangleApps/blob/karvonnen/apps/run/app.js)
The other stuff I should be able to sort out tomorrow.
I have tested a bit:
I still get an error when there are no settings: