Skip to content

Commit

Permalink
scons: serialize_programmer(): clean code, add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Mar 4, 2024
1 parent e5b3413 commit 6762a58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apio/managers/scons.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,13 +481,13 @@ def serialize_programmer(
programmer = content["command"]

# -- Let's add the arguments for executing the programmer
if content["args"]:
if content.get("args"):
programmer += f" {content['args']}"

# -- Some tools need extra arguments
# -- (like dfu-util for example)
if prog_info.get("extra_args"):
programmer += f" {prog_info.get('extra_args')}"
programmer += f" {prog_info['extra_args']}"

# Enable SRAM programming
if sram:
Expand Down

0 comments on commit 6762a58

Please sign in to comment.