Skip to content

Commit

Permalink
clearer comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SWX-Callum committed Dec 4, 2024
1 parent 09974c8 commit b254cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ pub fn get_info(target: (&str, u16)) -> Result<SysInfo> {
bytes.iter().take_while(|&&b| b != 0).map(|&b| b as char).collect()
}
else if platform == "TwinCAT/BSD" {
//the data after is always garbage
// The following data is TwinCAT/BSD in bytes. But we know the platform from 0.
"".into()
} else {
iter::from_fn(|| bytes.read_u16::<LE>().ok())
Expand Down

0 comments on commit b254cf8

Please sign in to comment.