mirror of https://github.com/espruino/BangleApps
Load steps from Bangle health if available
parent
1b535d99cb
commit
1055da2914
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue