mirror of https://github.com/espruino/BangleApps
bthrm - fix error during planned disconnect when turning BTHRM off
parent
d347d0a0af
commit
d0ca5d38a5
|
@ -16,3 +16,4 @@
|
||||||
Disconnect cleanly on exit
|
Disconnect cleanly on exit
|
||||||
0.06: Fix bug if no request waiting time is set
|
0.06: Fix bug if no request waiting time is set
|
||||||
Fix bug if no connection data was cached
|
Fix bug if no connection data was cached
|
||||||
|
Fix error during disconnect
|
||||||
|
|
|
@ -489,8 +489,8 @@
|
||||||
if (gatt.connected){
|
if (gatt.connected){
|
||||||
log("Disconnect with gatt: ", gatt);
|
log("Disconnect with gatt: ", gatt);
|
||||||
gatt.disconnect().then(()=>{
|
gatt.disconnect().then(()=>{
|
||||||
log("Successful disconnect", e);
|
log("Successful disconnect");
|
||||||
}).catch(()=>{
|
}).catch((e)=>{
|
||||||
log("Error during disconnect", e);
|
log("Error during disconnect", e);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue