forked from FOSS/BangleApps
bootgatthrm: allow option to remain connected
parent
0a097dd031
commit
da7f03b21f
|
@ -30,6 +30,9 @@
|
|||
});
|
||||
|
||||
}
|
||||
|
||||
const keepConnected = (require("Storage").readJSON("gatthrm.settings.json", 1) || {}).keepConnected;
|
||||
|
||||
function updateBLEHeartRate(hrm) {
|
||||
/*
|
||||
* Send updated heart rate measurement via BLE
|
||||
|
@ -52,7 +55,8 @@
|
|||
/*
|
||||
* BLE has to restart after service setup.
|
||||
*/
|
||||
NRF.disconnect();
|
||||
if(!settings.keepConnected)
|
||||
NRF.disconnect();
|
||||
}
|
||||
else if (error.message.includes("UUID 0x2a37")) {
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue