Skip to content

Commit

Permalink
runners: jlink: Make port selectable for J-Link IP
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
marnold-b authored and MaureenHelm committed Oct 23, 2024
1 parent d172847 commit 3b6555a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/west_commands/runners/jlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

def is_ip(ip):
try:
ipaddress.ip_address(ip)
ipaddress.ip_address(ip.split(':')[0])
except ValueError:
return False
return True
Expand Down

0 comments on commit 3b6555a

Please sign in to comment.