diff --git a/apps/bthrm/ChangeLog b/apps/bthrm/ChangeLog index df7e2caa9..3354a19e8 100644 --- a/apps/bthrm/ChangeLog +++ b/apps/bthrm/ChangeLog @@ -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 diff --git a/apps/bthrm/boot.js b/apps/bthrm/boot.js index 59cd2e718..6ac6382d6 100644 --- a/apps/bthrm/boot.js +++ b/apps/bthrm/boot.js @@ -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); }); }