Load steps from Bangle health if available

pull/1301/head
Marco Heiming 2022-01-17 12:25:56 +01:00
parent 1b535d99cb
commit 1055da2914
1 changed files with 3 additions and 0 deletions

View File

@ -541,6 +541,9 @@ function shortValue(v) {
}
function getSteps() {
if (Bangle.getHealthStatus) {
return Bangle.getHealthStatus("day").steps;
}
if (WIDGETS && WIDGETS.wpedom !== undefined) {
return WIDGETS.wpedom.getSteps();
}