Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
penn5 committed May 22, 2019
1 parent 0c3d03d commit 9f8b129
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions idtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ def get_images(xml: bytes):
for img in std_images:
if not img.get("identifier") in ddr_ids:
images[int(img.get("address"), 0)] = img.text
print(images)
return images
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def main(config, device, chip=""):
flasher = imageflasher.ImageFlasher(chip)
if device != False: # We have to check not False rather than just True, because None evaluates to False, and None should be passed intact
flasher.connect_serial(device)
for addr, fil in images:
for addr, fil in images.items():
flasher.download_from_disk(os.path.join(os.path.dirname(config.path), fil.replace("/", os.path.sep)), addr)
print("Flash successful!")

Expand Down

0 comments on commit 9f8b129

Please sign in to comment.