|
|
|
@ -7,7 +7,7 @@ udp_port=14560
@@ -7,7 +7,7 @@ udp_port=14560
|
|
|
|
|
extra_args= |
|
|
|
|
baudrate=921600 |
|
|
|
|
device= |
|
|
|
|
while getopts ":b:d:p:q" opt; do |
|
|
|
|
while getopts ":b:d:p:qr:" opt; do |
|
|
|
|
case $opt in |
|
|
|
|
b) |
|
|
|
|
baudrate=$OPTARG |
|
|
|
@ -21,6 +21,9 @@ while getopts ":b:d:p:q" opt; do
@@ -21,6 +21,9 @@ while getopts ":b:d:p:q" opt; do
|
|
|
|
|
q) |
|
|
|
|
extra_args="$extra_args -qgc" |
|
|
|
|
;; |
|
|
|
|
r) |
|
|
|
|
extra_args="$extra_args -r $OPTARG" |
|
|
|
|
;; |
|
|
|
|
\?) |
|
|
|
|
echo "Invalid option: -$OPTARG" >&2 |
|
|
|
|
exit 1 |
|
|
|
|