Browse Source

Only look for target disk during Upload (#21804)

vanilla_fb_2.0.x
ManuelMcLure 4 years ago
committed by Scott Lahteine
parent
commit
6e18af6f81
  1. 3
      Marlin/src/HAL/LPC1768/upload_extra_script.py

3
Marlin/src/HAL/LPC1768/upload_extra_script.py

@ -20,6 +20,7 @@ def print_error(e):
'or copy the firmware (.pio/build/%s/firmware.bin) manually to the appropriate disk\n' \
%(e, env.get('PIOENV')))
def before_upload(source, target, env):
try:
#
# Find a disk for upload
@ -118,3 +119,5 @@ try:
except Exception as e:
print_error(str(e))
env.AddPreAction("upload", before_upload)

Loading…
Cancel
Save