Skip to content

Commit

Permalink
Update libraries/sbg-rs/src/data_conversion.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Papineau <[email protected]>
  • Loading branch information
NoahSprenger and jonapap authored Mar 18, 2024
1 parent 603ad8b commit 14470e2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libraries/sbg-rs/src/data_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ impl From<SbgLogGpsPos> for (GpsPos1, GpsPos2, GpsPosAcc) {
fn from(value: SbgLogGpsPos) -> Self {
let status = GpsPositionStatus::new(value.status);

let valid = match status.get_status() {
Some(GpsPositionStatusE::SolComputed) => true,
_ => false,
};
let valid = matches!(status.get_status(), Some(GpsPositionStatusE::SolComputed));

(
GpsPos1 {
Expand Down

0 comments on commit 14470e2

Please sign in to comment.