stop beep/buzz disable storing the function scope

master
Gordon Williams 2019-11-12 12:07:04 +00:00
parent c15feea589
commit 5a6c11ad8e
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ Bangle.HID = E.toUint8Array(atob("BQEJBqEBhQIFBxngKecVACUBdQGVCIEClQF1CIEBlQV1AQ
else NRF.sleep();
},10);
if (!s.vibrate) Bangle.buzz=()=>Promise.resolve();
if (!s.beep) Bangle.beep=()=>Promise.resolve();
if (!s.vibrate) Bangle.buzz=Promise.resolve;
if (!s.beep) Bangle.beep=Promise.resolve;
Bangle.setLCDTimeout(s.timeout);
if (!s.timeout) Bangle.setLCDPower(1);
E.setTimeZone(s.timezone);