From 683da1a3a9e4fd675f2d8e84bd81c98c86c658c2 Mon Sep 17 00:00:00 2001 From: Grzegorz Chwierut Date: Tue, 25 Feb 2025 16:22:54 +0100 Subject: [PATCH] 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 --- scripts/west_commands/ncs_provision.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/west_commands/ncs_provision.py b/scripts/west_commands/ncs_provision.py index 70fcf1b2a872..b09e1eee2c60 100644 --- a/scripts/west_commands/ncs_provision.py +++ b/scripts/west_commands/ncs_provision.py @@ -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