Skip to content

Commit

Permalink
fixed MonVer parsing from ublox-rs#47
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasPMagno committed Feb 20, 2023
1 parent ec01a08 commit f6d2ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ublox/src/ubx_packets/packets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3029,7 +3029,7 @@ impl<'a> MonVerExtensionIter<'a> {
}

fn is_valid(payload: &[u8]) -> bool {
payload.len() % 30 == 0 && payload.chunks(30).any(|c| !is_cstr_valid(c))
payload.len() % 30 == 0 && payload.chunks(30).all(|c| is_cstr_valid(c))
}
}

Expand Down

0 comments on commit f6d2ec6

Please sign in to comment.