diff --git a/apio/managers/scons.py b/apio/managers/scons.py index fada9dc5..25ae0d94 100644 --- a/apio/managers/scons.py +++ b/apio/managers/scons.py @@ -480,21 +480,14 @@ def serialize_programmer( # -- Ex. "iceprog" programmer = content["command"] - # dfu-util needs extra args first - if programmer.startswith("dfu-util"): - if prog_info.get("extra_args"): - programmer += f" {prog_info.get('extra_args')}" - - if content.get("args"): - programmer += f" {content.get('args')}" - else: - # Add args - if content.get("args"): - programmer += f" {content.get('args')}" - - # Add extra args - if prog_info.get("extra_args"): - programmer += f" {prog_info.get('extra_args')}" + # -- Let's add the arguments for executing the programmer + if content["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')}" # Enable SRAM programming if sram: