Soft-reset before syncing

tildatorch
Marek Ventur 2018-08-29 13:06:36 +01:00
parent 4fb8205cab
commit 3d42f7458f
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ def sync(args, patterns, resources, verbose, skip_wifi):
paths.add(path)
if not found and (pattern not in paths):
print("WARN: No resources to copy found for pattern %s" % patterns)
pyboard_util.soft_reset(args, verbose)
pyboard_util.init_copy_via_repl(args)
if not verbose:
print("Copying %s files: " % len(paths), end="", flush=True)