diff options
author | Bdale Garbee <bdale@gag.com> | 2017-09-14 10:51:18 -0600 |
---|---|---|
committer | Bdale Garbee <bdale@gag.com> | 2017-09-14 10:51:18 -0600 |
commit | ad61e277069217d98400e884d3c173357d2343ed (patch) | |
tree | 0cfebb8cceee2e84a711dd8168331de87f72a515 /ao-bringup/turnon_telebt | |
parent | 5666a3c9427324ad8f92e21c5f9017436b36a82a (diff) |
deal with cheap BT dongle that shows multiple copies of unit in lescan output
Diffstat (limited to 'ao-bringup/turnon_telebt')
-rwxr-xr-x | ao-bringup/turnon_telebt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ao-bringup/turnon_telebt b/ao-bringup/turnon_telebt index 912ba459..fb8318b3 100755 --- a/ao-bringup/turnon_telebt +++ b/ao-bringup/turnon_telebt @@ -80,7 +80,7 @@ else fi echo -n "checking BTLE functionality... " -btdev=`sudo timeout -s SIGINT 5s hcitool lescan | awk -F \- '/TeleBT/ { print $2 }'` +btdev=`sudo timeout -s SIGINT 5s hcitool lescan | awk -F \- '/TeleBT/ { print $2 }' | head -n 1` if [ "$btdev" = "$SERIAL" ]; then echo "working!" else |