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() {
|
||||
NRF.setServices({}, adv);
|
||||
if (s.ble) NRF.wake();
|
||||
else NRF.sleep();
|
||||
// we just reset, so BLE should be on
|
||||
if (!s.ble) NRF.sleep(); // disable advertising if BLE should be off
|
||||
},10);
|
||||
|
||||
if (!s.vibrate) Bangle.buzz=Promise.resolve;
|
||||
|
|
Loading…
Reference in New Issue