File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ def deploy_circuitpython_code(destination=None):
5353 print ("Waiting for CIRCUITPY drive..." )
5454 destination = wintertools .fs .wait_for_drive ("CIRCUITPY" )
5555
56- print ("Forcing BHB into repl (workaround for CircuitPython issue #3986)" )
57- wintertools .circuitpython .force_into_repl (USB_DEVICE_ID )
56+ print ("Forcing BHB into repl (workaround for CircuitPython issue #3986)" )
57+ wintertools .circuitpython .force_into_repl (USB_DEVICE_ID )
5858
5959 print ("Cleaning temporary files from src directories..." )
6060 wintertools .fs .clean_pycache (FIRMWARE_DIR )
@@ -65,9 +65,10 @@ def deploy_circuitpython_code(destination=None):
6565 print ("Copying files..." )
6666 wintertools .fs .deploy_files (FILES_TO_DEPLOY , destination )
6767
68- print ("Done copying files, resetting..." )
69- wintertools .circuitpython .reset_via_serial (USB_DEVICE_ID )
70- print ("Done!" )
68+ if not destination :
69+ print ("Done copying files, resetting..." )
70+ wintertools .circuitpython .reset_via_serial (USB_DEVICE_ID )
71+ print ("Done!" )
7172
7273
7374def main ():
You can’t perform that action at this time.
0 commit comments