Skip to content

Commit

Permalink
bump: cli example dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Gherghescu <[email protected]>
  • Loading branch information
andrei-ng committed Sep 15, 2023
1 parent 53a8cc7 commit 2654ab5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
11 changes: 7 additions & 4 deletions examples/basic_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
[package]
authors = ["Lane Kolbly <[email protected]>", "Andrei Gherghescu <[email protected]>"]
edition = "2021"
name = "example-basic-ublox-cli"
name = "example-basic-cli"
publish = false
version = "0.1.0"

[dependencies]
chrono = "0.4.15"
chrono = "0.4.29"
clap = {version = "4.2.7", features = ["cargo"]}
serde_json = "1.0.85"
serialport = "4.2.0"
serde_json = "1.0.105"
serialport = "4.2.2"
ublox = {path = "../../ublox"}

[features]
alloc = ["ublox/alloc"]
5 changes: 2 additions & 3 deletions examples/basic_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ fn main() {
.wait_for_ack::<CfgPrtUart>()
.expect("Could not acknowledge UBX-CFG-PRT-UART msg");

// Enable the NavPvt packet
println!("Enable UBX-NAV-PVT message on selected ports ...");
// Enable the NavPvt packet on UART1 port
device
.write_all(
&CfgMsgAllPortsBuilder::set_rate_for::<NavPvt>([0, 1, 0, 0, 0, 0]).into_packet_bytes(),
Expand Down Expand Up @@ -160,7 +159,7 @@ fn main() {
println!("{:?}", packet);
},
})
.expect("Failed to consume buffer");
.unwrap();
}
}

Expand Down

0 comments on commit 2654ab5

Please sign in to comment.