Skip to content

Commit

Permalink
Fix when to return default port
Browse files Browse the repository at this point in the history
  • Loading branch information
esarver committed May 10, 2024
1 parent 3e9f983 commit 429dd60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kic-discover/src/ethernet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ impl LxiDeviceInfo {
let s1: Vec<&str> = xml_data.split("::SOCKET").collect();
let port_split: Vec<&str> = s1[0].split("::").collect();
let socket_port = if port_split.is_empty() {
port_split[port_split.len().saturating_sub(1)].to_string()
COMM_PORT.to_string()
} else {
"5025".to_string()
port_split[port_split.len().saturating_sub(1)].to_string()
};

//ToDo: test versatest when it's discoverable
Expand Down

0 comments on commit 429dd60

Please sign in to comment.