Add device ID to autoflash script.
This commit is contained in:
parent
b37c0a116e
commit
a0ddae86e5
@ -8,6 +8,7 @@
|
|||||||
# - run a terminal
|
# - run a terminal
|
||||||
|
|
||||||
SERIAL=/dev/ttyACM0
|
SERIAL=/dev/ttyACM0
|
||||||
|
DEVICE=0483:df11
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
echo "waiting for DFU device..."
|
echo "waiting for DFU device..."
|
||||||
@ -19,7 +20,7 @@ while true; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo "found DFU device, flashing"
|
echo "found DFU device, flashing"
|
||||||
dfu-util -a 0 -D build/flash.dfu
|
dfu-util -a 0 -d $DEVICE -D build/flash.dfu
|
||||||
|
|
||||||
echo "waiting for DFU to exit..."
|
echo "waiting for DFU to exit..."
|
||||||
while true; do
|
while true; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user