Skip to content

Commit d794ffd

Browse files
committed
Fix legacy upload.network_pattern rule
1 parent c31614b commit d794ffd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: platform.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,10 @@ tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verb
128128

129129
tools.avrdude_remote.upload.pattern=/usr/bin/run-avrdude /tmp/sketch.hex {upload.verbose} -p{build.mcu}
130130

131-
# this is deprecated by pluggable discovery:
132-
tools.avrdude.upload.network_pattern="{tools.arduino_ota.cmd}" -address {serial.port} -port 65280 -username arduino -password "{network.password}" -sketch "{build.path}/{build.project_name}.bin" -upload /sketch -d -v
131+
# The following rule is deprecated by pluggable discovery.
132+
# We keep it to avoid breaking compatibility with the Arduino Java IDE.
133+
tools.avrdude.network_cmd={runtime.tools.arduinoOTA.path}/bin/arduinoOTA
134+
tools.avrdude.upload.network_pattern="{network_cmd}" -address {serial.port} -port 65280 -username arduino -password "{network.password}" -sketch "{build.path}/{build.project_name}.bin" -upload /sketch -d -v
133135

134136
# ArduinoOTA
135137
tools.arduino_ota.cmd={runtime.tools.arduinoOTA-1.3.0.path}/bin/arduinoOTA

0 commit comments

Comments
 (0)