Skip to content

Commit cb59cc2

Browse files
upd: optimization openocd version control
1 parent 09fd621 commit cb59cc2

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="if openocd --version 2>&1 | grep 2017; then /usr/bin/run-avrdude /tmp/sketch.hex && exit 0; else if ping -q -w 1 -c 1 www.arduino.org > /dev/null; then opkg update > /dev/null && opkg upgrade openocd > /dev/null && /usr/bin/run-avrdude /tmp/sketch.hex && exit 0; else echo 'Please connect your board to the Internet in order to upgrade tools.' 1>&2; fi fi; exit 1"
129+
tools.avrdude_remote.upload.pattern="if openocd --version 2>&1 | grep 2016; then if ping -q -w 1 -c 1 www.arduino.org > /dev/null; then opkg update > /dev/null && opkg upgrade openocd > /dev/null && /usr/bin/run-avrdude /tmp/sketch.hex && exit 0; else echo 'Please connect your board to the Internet in order to upgrade tools.' 1>&2 && exit 1; fi; else /usr/bin/run-avrdude /tmp/sketch.hex && exit 0; fi;"
130130

131131
#
132132
# BOSSA

0 commit comments

Comments
 (0)