Skip to content

Commit

Permalink
Fix arg parsing in rtt example (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesneyer committed Sep 11, 2021
1 parent 86c7574 commit 7925448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/rtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ def main(target_device, block_address=None):


if __name__ == "__main__":
sys.exit(main(sys.argv[1], None if len(sys.argv) < 2 else int(sys.argv[2], 16)))
sys.exit(main(sys.argv[1], None if len(sys.argv) < 3 else int(sys.argv[2], 16)))

0 comments on commit 7925448

Please sign in to comment.