Update stepCount

master
TimWue 2022-12-21 17:53:27 +01:00 committed by GitHub
parent 5babfeac75
commit 3da9fb84d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ const drawHeart = (isHRMOn) =>{
const drawSteps = () => {
var steps = Bangle.getHealthStatus("day").steps;
const stepsRaw = Math.round(steps/1000);
const stepsRaw = steps/1000;
const decimal = stepsRaw >=10 ? 0 : 1;
steps =stepsRaw.toFixed(decimal) + "K";
console.log(steps);