Skip to content

Commit

Permalink
fix example builds
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Gherghescu <[email protected]>
  • Loading branch information
andrei-ng committed Dec 23, 2024
1 parent fd2e4a2 commit 4c16c0d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
with:
components: rustfmt, clippy
- name: Build
run: cd ${{ github.workspace }}/examples && cargo build
run: cd ${{ github.workspace }}/examples && cargo build --release
- name: Coding style
run: |
cd ${{ github.workspace }}/examples && cargo fmt --all -- --check
Expand Down
30 changes: 15 additions & 15 deletions examples/basic-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,29 +282,29 @@ Configuration includes: protocol in/out, data-bits, stop-bits, parity, baud-rate

if let Some(port_id) = port_id {
println!("Configuring '{}' port ...", port_name.to_uppercase());
device
.write_all(
&CfgPrtUartBuilder {
device
.write_all(
&CfgPrtUartBuilder {
portid: port_id,
reserved0: 0,
tx_ready: 0,
reserved0: 0,
tx_ready: 0,
mode: UartMode::new(
ublox_databits(data_bits),
ublox_parity(parity),
ublox_stopbits(stop_bits),
),
baud_rate: baud,
baud_rate: baud,
in_proto_mask: inproto,
out_proto_mask: outproto,
flags: 0,
reserved5: 0,
}
.into_packet_bytes(),
)
.expect("Could not configure UBX-CFG-PRT-UART");
device
.wait_for_ack::<CfgPrtUart>()
.expect("Could not acknowledge UBX-CFG-PRT-UART msg");
flags: 0,
reserved5: 0,
}
.into_packet_bytes(),
)
.expect("Could not configure UBX-CFG-PRT-UART");
device
.wait_for_ack::<CfgPrtUart>()
.expect("Could not acknowledge UBX-CFG-PRT-UART msg");
}
}

Expand Down

0 comments on commit 4c16c0d

Please sign in to comment.