projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
get ram usage under control, etc
[fw/altos]
/
ao-bringup
/
turnon_teledongle
diff --git
a/ao-bringup/turnon_teledongle
b/ao-bringup/turnon_teledongle
index 0cdbde7a5973e37830e775ed677da6a0a66b503b..983f1010340004b69b1c7e0a74f2d5e61118a5e6 100755
(executable)
--- a/
ao-bringup/turnon_teledongle
+++ b/
ao-bringup/turnon_teledongle
@@
-71,7
+71,9
@@
esac
echo 'E 0' > $dev
echo 'E 0' > $dev
-SERIAL=$SERIAL ./cal-freq $dev
+CALFILE=cal-$SERIAL.txt
+
+../ao-tools/ao-cal-freq/ao-cal-freq --verbose --nosave --output=$CALFILE --tty=$dev
case $? in
0)
case $? in
0)
@@
-82,7
+84,7
@@
case $? in
;;
esac
;;
esac
-CAL_VALUE=`
grep "^$SERIAL," cal_values | tail -1 | sed 's/^[^,]*,//'
`
+CAL_VALUE=`
cat $CALFILE
`
case "$CAL_VALUE" in
[1-9]*)
case "$CAL_VALUE" in
[1-9]*)
@@
-93,6
+95,8
@@
case "$CAL_VALUE" in
;;
esac
;;
esac
+echo $SERIAL","$CAL_VALUE >> cal_values
+
echo "Reflashing with calibration: $CAL_VALUE"
$USBLOAD --cal=$CAL_VALUE --tty=$dev $ALTOS || exit 1
echo "Reflashing with calibration: $CAL_VALUE"
$USBLOAD --cal=$CAL_VALUE --tty=$dev $ALTOS || exit 1