clened up debugging messages

This commit is contained in:
Alexander Bocken 2020-07-04 20:36:05 +02:00
parent 2736f9bd99
commit 01d0375225

6
bt
View File

@ -99,14 +99,8 @@ pair(){
start_scan="$( date +'%s')"
pair
else
echo all:"$all_devices"
echo choice:"$choice"
echo new:"$new_devices"
dev_no=$( echo "$new_devices" | nl | grep "$choice" | awk '{print $1}')
echo dev_no:$dev_no
dev_id=$( echo "$bt_IDS" | nl | grep -P "^.*$dev_no\t" | awk '{print $2}' )
echo bt_IDS:"$bt_IDS"
echo devid:$dev_id
#only attempt to connect if pairing succeeds
bluetoothctl pair "$dev_id" && ( pair_succesful=true && bluetoothctl connect "$dev_id" ) || pair_succesful=false
if $AUTOTRUST; then