Fix macOS serial upload

This commit is contained in:
Ben Lye 2018-01-22 16:10:21 +00:00
parent 4facdf0932
commit 13e57408ef

View File

@ -1,2 +1,6 @@
#!/bin/bash #!/bin/bash
$(dirname $0)/stm32flash/stm32flash -g 0x8000000 -b 115200 -w "$4" /dev/"$1" port=$1
addr=$2
file=$3
$(dirname $0)/stm32flash/stm32flash -g $addr -b 57600 -w "$file" -v /dev/"$port"