From d0ca5d38a5f3126667f354488ec860b91bb31bf3 Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Sun, 6 Feb 2022 22:02:56 +0100 Subject: [PATCH] bthrm - fix error during planned disconnect when turning BTHRM off --- apps/bthrm/ChangeLog | 1 + apps/bthrm/boot.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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); }); }