Skip to content

Commit

Permalink
scripts: west ncs-provision: allow using without dev-id
Browse files Browse the repository at this point in the history
When running west ncs-provision upload command locally,
it is not required to add the device id if only one
device is connected. Pass to nrfutil command: --traits
jlink, to run command on connected device.

Signed-off-by: Grzegorz Chwierut <[email protected]>
  • Loading branch information
gchwier authored and nvlsianpu committed Feb 25, 2025
1 parent fea8f8a commit 683da1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/west_commands/ncs_provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def _build_command(self) -> list[str]:
]
if self.device_id:
command += ["--serial-number", self.device_id]
else:
command += ["--traits", "jlink"]

return command

Expand Down

0 comments on commit 683da1a

Please sign in to comment.