summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2017-09-14 10:51:18 -0600
committerBdale Garbee <bdale@gag.com>2017-09-14 10:51:18 -0600
commitad61e277069217d98400e884d3c173357d2343ed (patch)
tree0cfebb8cceee2e84a711dd8168331de87f72a515
parent5666a3c9427324ad8f92e21c5f9017436b36a82a (diff)
deal with cheap BT dongle that shows multiple copies of unit in lescan output
-rwxr-xr-xao-bringup/turnon_telebt2
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