Commit 72937b50 authored by Kuldeep Singh Dhaka's avatar Kuldeep Singh Dhaka

More robust script (space in path don't cause problem)

parent ef9acacb
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Ref: http://www.libopencm3.org/wiki/USB_DFU # Ref: http://www.libopencm3.org/wiki/USB_DFU
# Firmware # Firmware
FIRMWARE=$PWD/box0-v5.bin FIRMWARE="$PWD/box0-v5.bin"
ADDRESS=0x08000000 ADDRESS=0x08000000
# Device # Device
...@@ -11,4 +11,4 @@ PID="df11" ...@@ -11,4 +11,4 @@ PID="df11"
ALT_SETTING=0 ALT_SETTING=0
# Command # Command
dfu-util -a $ALT_SETTING -d $VID:$PID -s $ADDRESS:leave -D $FIRMWARE dfu-util -a $ALT_SETTING -d $VID:$PID -s $ADDRESS:leave -D "$FIRMWARE"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment