Skip to content

Commit

Permalink
Fix error when disconnecting device with Apple Silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
jonastheis committed Dec 27, 2021
1 parent 3bb2920 commit cfd77f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/blt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ TITLE=$2

if [[ $(../blueutil --is-connected ${DEVICE}) -eq 1 ]]
then
../blueutil --disconnect ${DEVICE}
../blueutil --wait-disconnect ${DEVICE} 5
../blueutil --disconnect ${DEVICE} --wait-disconnect ${DEVICE} 5
if [[ $(../blueutil --is-connected ${DEVICE}) -eq 0 ]]
then
./notify.sh -m "Disconnected from ${TITLE}"
Expand Down

0 comments on commit cfd77f1

Please sign in to comment.