projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
[fw/altos]
/
ao-bringup
/
turnon_telebt
diff --git
a/ao-bringup/turnon_telebt
b/ao-bringup/turnon_telebt
index 8bf9bcb56bb5429aa13e1849d258f2b1347bbe7e..af72bab869575ed650f26a74ec633356c9bcaf2b 100755
(executable)
--- a/
ao-bringup/turnon_telebt
+++ b/
ao-bringup/turnon_telebt
@@
-64,11
+64,14
@@
case "$dev" in
;;
esac
;;
esac
-echo 'E 0' > $dev
+CALFILE=cal-$SERIAL.txt
-
SERIAL=$SERIAL ./cal-freq
$dev
+
../ao-tools/ao-cal-freq/ao-cal-freq --nosave --output=$CALFILE --tty=
$dev
-echo 'E 1' > $dev
+CAL_VALUE=`cat $CALFILE`
+echo $SERIAL","$CAL_VALUE >> cal_values
+echo "Reflashing with calibration: $CAL_VALUE"
+$USBLOAD --cal=$CAL_VALUE --tty=$dev $ALTOS_FILE || exit 1
echo -n "checking BlueTooth functionality... "
btdev=`hcitool scan | awk -F \- '/TeleBT/ { print $2 }'`
echo -n "checking BlueTooth functionality... "
btdev=`hcitool scan | awk -F \- '/TeleBT/ { print $2 }'`