Skip to content

Commit

Permalink
update templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Mobarak committed Sep 22, 2021
1 parent a87cb8f commit 7a89883
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions generator/sbpg/targets/resources/sbp-cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ log = "0.4"
nom = "6.0"
thiserror = "1.0"

[dependencies.swiftnav-rs]
[dependencies.swiftnav]
git = "https://github.com/swift-nav/swiftnav-rs"
tag = "v0.5.1"
tag = "v0.6.1"
optional = true

[dependencies.slotmap]
Expand Down
4 changes: 2 additions & 2 deletions generator/sbpg/targets/resources/sbp_messages_mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub trait SBPMessage: SbpSerialize {
fn set_sender_id(&mut self, new_id: u16);
fn to_frame(&self) -> std::result::Result<Vec<u8>, crate::FramerError>;
fn write_frame(&self, buf: &mut Vec<u8>) -> std::result::Result<(), crate::FramerError>;
#[cfg(feature = "swiftnav-rs")]
#[cfg(feature = "swiftnav")]
fn gps_time(&self) -> Option<std::result::Result<crate::time::MessageTime, crate::time::GpsTimeError>> {
None
}
Expand Down Expand Up @@ -156,7 +156,7 @@ impl crate::SBPMessage for SBP {
}
}

#[cfg(feature = "swiftnav-rs")]
#[cfg(feature = "swiftnav")]
fn gps_time(&self) -> Option<std::result::Result<crate::time::MessageTime, crate::time::GpsTimeError>> {
match self {
((*- for m in msgs *))
Expand Down
2 changes: 1 addition & 1 deletion rust/sbp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ version = "0.3.0"
default-features = false

[dev-dependencies]
serialport = "2.1.0"
serialport = "2.1.0"

0 comments on commit 7a89883

Please sign in to comment.