projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
releasing 1.8.3
[fw/altos]
/
ao-bringup
/
turnon_teledongle
diff --git
a/ao-bringup/turnon_teledongle
b/ao-bringup/turnon_teledongle
index d17e2b96caae76fef6281e3e35cee58af506a4e5..0cdbde7a5973e37830e775ed677da6a0a66b503b 100755
(executable)
--- a/
ao-bringup/turnon_teledongle
+++ b/
ao-bringup/turnon_teledongle
@@
-28,8
+28,21
@@
echo "\t$PRODUCT_NAME v$VERSION powered from USB"
echo "\t\twith ST-Link-V2 cabled to debug header"
echo "\t\twith coax from UHF to frequency counter"
echo
echo "\t\twith ST-Link-V2 cabled to debug header"
echo "\t\twith coax from UHF to frequency counter"
echo
-echo -n "$PRODUCT_NAME-$VERSION serial number: "
-read SERIAL
+
+case $# in
+ 1)
+ SERIAL="$1"
+ echo "$PRODUCT-$VERSION serial number: $SERIAL"
+ ;;
+ 0)
+ echo -n "$PRODUCT-$VERSION serial number: "
+ read SERIAL
+ ;;
+ *)
+ echo "Usage: $0 <serial-number>" 1>&2
+ exit 1;
+ ;;
+esac
BINARIES=$HOME/altusmetrumllc/Binaries
BINARIES=$HOME/altusmetrumllc/Binaries