Update boot.js

Do not alarm while charging
pull/1772/head
Marco H 2022-04-29 11:40:50 +02:00 committed by GitHub
parent ab02f42503
commit 673bb38cd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1,4 +1,5 @@
function run(){
if (Bangle.isCharging()) return;
var now = new Date();
var h = now.getHours();
if(h >= activityreminder.startHour && h < activityreminder.endHour){