fix broken BLE sleep settings

pull/25/head^2
Gordon Williams 2019-11-12 12:47:17 +00:00
parent 5a6c11ad8e
commit 94f29a23ae
1 changed files with 2 additions and 2 deletions

View File

@ -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;