Skip to content

Commit 525be9e

Browse files
committed
Fix legacy upload.network_pattern rule
1 parent a1c76c0 commit 525be9e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

platform.txt

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

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

129-
# the following rule is deprecated by pluggable discovery
130-
tools.avrdude.upload.network_pattern="{tools.arduino_ota.cmd}" -address {serial.port} -port {upload.network.port} -sketch "{build.path}/{build.project_name}.hex" -upload {upload.network.endpoint_upload} -sync {upload.network.endpoint_sync} -reset {upload.network.endpoint_reset} -sync_exp {upload.network.sync_return}
129+
# The following rule is deprecated by pluggable discovery.
130+
# We keep it to avoid breaking compatibility with the Arduino Java IDE.
131+
tools.avrdude.network_cmd={runtime.tools.arduinoOTA.path}/bin/arduinoOTA
132+
tools.avrdude.upload.network_pattern="{network_cmd}" -address {serial.port} -port {upload.network.port} -sketch "{build.path}/{build.project_name}.hex" -upload {upload.network.endpoint_upload} -sync {upload.network.endpoint_sync} -reset {upload.network.endpoint_reset} -sync_exp {upload.network.sync_return}
131133

132134
# arduino ota
133135
tools.arduino_ota.cmd={runtime.tools.arduinoOTA.path}/bin/arduinoOTA

0 commit comments

Comments
 (0)