forked from FOSS/BangleApps
Merge pull request #2121 from splch/patch-1
Use 10-minute acceleration and charging for isWorn()master
commit
674ef0aa13
|
@ -11,9 +11,7 @@ exports.isWorn = function() {
|
|||
return new Promise(resolve => {
|
||||
if (Bangle.isCharging())
|
||||
return resolve(false);
|
||||
if (E.getTemperature() > 24.625)
|
||||
return resolve(true);
|
||||
if (Bangle.getAccel().mag > 1.045)
|
||||
if (Bangle.getHealthStatus().movement > 124)
|
||||
return resolve(true);
|
||||
return resolve(false);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue