mirror of https://github.com/espruino/BangleApps
fix broken BLE sleep settings
parent
5a6c11ad8e
commit
94f29a23ae
|
@ -15,8 +15,8 @@ Bangle.HID = E.toUint8Array(atob("BQEJBqEBhQIFBxngKecVACUBdQGVCIEClQF1CIEBlQV1AQ
|
||||||
}
|
}
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
NRF.setServices({}, adv);
|
NRF.setServices({}, adv);
|
||||||
if (s.ble) NRF.wake();
|
// we just reset, so BLE should be on
|
||||||
else NRF.sleep();
|
if (!s.ble) NRF.sleep(); // disable advertising if BLE should be off
|
||||||
},10);
|
},10);
|
||||||
|
|
||||||
if (!s.vibrate) Bangle.buzz=Promise.resolve;
|
if (!s.vibrate) Bangle.buzz=Promise.resolve;
|
||||||
|
|
Loading…
Reference in New Issue