mirror of https://github.com/espruino/BangleApps
parent
338a659bbd
commit
3c7e830e1c
|
@ -29,11 +29,11 @@ function calc_ess(val) {
|
|||
if (nonmot) {
|
||||
slsnds+=1;
|
||||
if (slsnds >= sleepthresh) {
|
||||
return true; // awake
|
||||
return true; // sleep
|
||||
}
|
||||
} else {
|
||||
slsnds=0;
|
||||
return false; // sleep
|
||||
return false; // awake
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue