From aedb3a0b2600be62a2e254cbd24dd3d3aceec43a Mon Sep 17 00:00:00 2001 From: sir-indy <53864146+sir-indy@users.noreply.github.com> Date: Tue, 19 Apr 2022 16:36:17 +0100 Subject: [PATCH] Update app.js --- apps/health/app.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/apps/health/app.js b/apps/health/app.js index ae5a313f6..7b52216b0 100644 --- a/apps/health/app.js +++ b/apps/health/app.js @@ -31,11 +31,6 @@ function menuSettings() { min : 0, max : 3, format : v=>["Off","3 mins","10 mins","Always"][v], onchange : v => { s.hrm=v;setSettings(s); } - }, - "Daily Step Goal":{ - value : 10000|s.stepGoal, - min : 0, max : 20000, step : 100, - onchange : v => { s.stepGoal=v;setSettings(s); } } }); } @@ -43,11 +38,17 @@ function menuSettings() { function menuStepCount() { swipe_enabled = false; clearButton(); + var s=getSettings(); E.showMenu({ "":{title:"Step Counting"}, "< Back":()=>menuMain(), "per hour":()=>stepsPerHour(), - "per day":()=>stepsPerDay() + "per day":()=>stepsPerDay(), + "Daily Step Goal":{ + value : 10000|s.stepGoal, + min : 0, max : 20000, step : 100, + onchange : v => { s.stepGoal=v;setSettings(s); } + } }); }