Skip to content

Commit 72e2e52

Browse files
committed
scripts: west ncs-provision: allow using without dev-id
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 <grzegorz.chwierut@nordicsemi.no>
1 parent 9c8e93f commit 72e2e52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/west_commands/ncs_provision.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ def _build_command(self) -> list[str]:
9292
]
9393
if self.device_id:
9494
command += ["--serial-number", self.device_id]
95+
else:
96+
command += ["--traits", "jlink"]
9597

9698
return command
9799

0 commit comments

Comments
 (0)