Skip to content

Commit 3b6555a

Browse files
marnold-bMaureenHelm
authored andcommitted
runners: jlink: Make port selectable for J-Link IP
If multiple J-Links with IP support are used, they can be selected with different ports. The actual implementation is just using the default port. Make the port selectable with <ip>:<port>. Signed-off-by: Michael Arnold <[email protected]>
1 parent d172847 commit 3b6555a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/west_commands/runners/jlink.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
def is_ip(ip):
3333
try:
34-
ipaddress.ip_address(ip)
34+
ipaddress.ip_address(ip.split(':')[0])
3535
except ValueError:
3636
return False
3737
return True

0 commit comments

Comments
 (0)