add dfuse_addr arguments option for tools/macosx/maple_upload
This commit is contained in:
parent
44bfd8ae54
commit
53e4329a75
|
@ -18,6 +18,11 @@ if [ -e $dummy_port_fullpath ]; then
|
||||||
# sleep 1
|
# sleep 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $# -eq 5 ]; then
|
||||||
|
dfuse_addr="--dfuse-address $5"
|
||||||
|
else
|
||||||
|
dfuse_addr=""
|
||||||
|
fi
|
||||||
|
|
||||||
DFU_UTIL=/usr/local/bin/dfu-util
|
DFU_UTIL=/usr/local/bin/dfu-util
|
||||||
if [ ! -x ${DFU_UTIL} ]; then
|
if [ ! -x ${DFU_UTIL} ]; then
|
||||||
|
@ -29,4 +34,4 @@ if [ ! -x ${DFU_UTIL} ]; then
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${DFU_UTIL} -d ${usbID} -a ${altID} -D ${binfile} -R
|
${DFU_UTIL} -d ${usbID} -a ${altID} -D ${binfile} -R ${dfuse_addr}
|
||||||
|
|
Loading…
Reference in New Issue