Skip to content

Commit d79b08b

Browse files
facchinmcmaglie
authored andcommitted
Avoid upload if openocd on MIPS is too old and bugged
1 parent 48d764a commit d79b08b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ tools.avrdude.upload.params.quiet=-q -q
126126
tools.avrdude.upload.params.noverify=-V
127127
tools.avrdude.upload.pattern="{cmd}" "-C{config.path}" {upload.verbose} -p{build.emu.mcu} -c{upload.protocol} -P{serial.port} -b{upload.speed} "-Uflash:w:{build.path}/{build.project_name}.hex:i"
128128

129-
tools.avrdude_remote.upload.pattern=/usr/bin/run-avrdude /tmp/sketch.hex
129+
tools.avrdude_remote.upload.pattern="openocd --version 2>&1 | grep 2017 && /usr/bin/run-avrdude /tmp/sketch.hex || echo Can't upload; update your Tian first 1>&2; exit 1"
130130

131131
#
132132
# BOSSA

0 commit comments

Comments
 (0)