8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0c3abe commit b84d4ffCopy full SHA for b84d4ff
maple_upload.sh
@@ -2,13 +2,14 @@
2
3
set -e
4
5
-if [ $# -lt 4 ]; then
6
- echo "Usage: $0 <dummy_port> <altID> <usbID> <binfile>" >&2
+if [ $# -lt 5 ]; then
+ echo "Usage: $0 <dummy_port> <altID> <usbVID> <usbPID> <binfile>" >&2
7
exit 1
8
fi
9
altID="$2"
10
-usbID="$3"
11
-binfile="$4"
+usbVID=${3#"0x"}
+usbPID=${4#"0x"}
12
+binfile="$5"
13
EXT=""
14
15
UNAME_OS="$(uname -s)"
@@ -52,7 +53,7 @@ fi
52
53
54
COUNTER=5
55
while
- "${DIR}/dfu-util.sh" -d "${usbID}" -a "${altID}" -D "${binfile}" -R
56
+ "${DIR}/dfu-util.sh" -d "${usbVID}:${usbPID}" -a "${altID}" -D "${binfile}" -R
57
ret=$?
58
do
59
if [ $ret -eq 0 ]; then
0 commit comments