From ad61e277069217d98400e884d3c173357d2343ed Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Thu, 14 Sep 2017 10:51:18 -0600 Subject: [PATCH] deal with cheap BT dongle that shows multiple copies of unit in lescan output --- ao-bringup/turnon_telebt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2