This adds an extra check before calling bluetoothctl, making sure that bluetoothd is running so the command doesn't hang.
Maybe there are better ways to perform this check, so let me know if the code could be improved (actually, this is my first pull request ever, so let me know if I'm doing something wrong).
This adds an extra check before calling
bluetoothctl
, making sure thatbluetoothd
is running so the command doesn't hang.Maybe there are better ways to perform this check, so let me know if the code could be improved (actually, this is my first pull request ever, so let me know if I'm doing something wrong).
Fixes #131