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
|
||||
0.06: Fix bug if no request waiting time is set
|
||||
Fix bug if no connection data was cached
|
||||
Fix error during disconnect
|
||||
|
|
|
@ -489,8 +489,8 @@
|
|||
if (gatt.connected){
|
||||
log("Disconnect with gatt: ", gatt);
|
||||
gatt.disconnect().then(()=>{
|
||||
log("Successful disconnect", e);
|
||||
}).catch(()=>{
|
||||
log("Successful disconnect");
|
||||
}).catch((e)=>{
|
||||
log("Error during disconnect", e);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue