diff --git a/apps/twenties/boot.js b/apps/twenties/boot.js index 180f4cbb7..722af43bc 100644 --- a/apps/twenties/boot.js +++ b/apps/twenties/boot.js @@ -2,12 +2,13 @@ const move = 20 * 60 * 1000; // 20 minutes const look = 20 * 1000; // 20 seconds - buzz = _ => { + const buzz = _ => { const date = new Date(); const day = date.getDay(); const hour = date.getHours(); // buzz at work - if (day <= 5 && hour >= 8 && hour <= 17) { + if (day >= 1 && day <= 5 && + hour >= 8 && hour <= 17) { Bangle.buzz().then(_ => { setTimeout(Bangle.buzz, look); }); @@ -15,4 +16,4 @@ }; setInterval(buzz, move); // buzz to stand / sit -})(); \ No newline at end of file +})();