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