1
0
Fork 0

use 10-minute acceleration and charging

removes temperature due to weather situations
master
Spence Churchill 2022-09-09 10:38:37 -07:00 committed by GitHub
parent 23eb487024
commit dc8319d97a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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 > 146)
return resolve(true);
return resolve(false);
});