utils/uf2conv.py: Don't flash if just inspecting
Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
parent
f30d32e8ed
commit
f080d621df
@ -379,6 +379,7 @@ def main():
|
|||||||
else:
|
else:
|
||||||
if len(drives) == 0:
|
if len(drives) == 0:
|
||||||
error("No drive to deploy.")
|
error("No drive to deploy.")
|
||||||
|
if outbuf:
|
||||||
for d in drives:
|
for d in drives:
|
||||||
print("Flashing %s (%s)" % (d, board_id(d)))
|
print("Flashing %s (%s)" % (d, board_id(d)))
|
||||||
write_file(d + "/NEW.UF2", outbuf)
|
write_file(d + "/NEW.UF2", outbuf)
|
||||||
|
Loading…
Reference in New Issue
Block a user