summaryrefslogtreecommitdiff
path: root/ao-bringup/turnon_telebt
diff options
context:
space:
mode:
Diffstat (limited to 'ao-bringup/turnon_telebt')
-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