Skip to content

Commit

Permalink
use retry send to initialize and check urc's (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethKnudsen97 authored Jan 30, 2024
1 parent 3d3ecf4 commit 290609c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ublox-short-range/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ where
}

// TODO: handle EDM settings quirk see EDM datasheet: 2.2.5.1 AT Request Serial settings
self.send_internal(
self.retry_send(
&EdmAtCmdWrapper(SetRS232Settings {
baud_rate: BaudRate::B115200,
flow_control: FlowControl::On,
Expand All @@ -284,7 +284,7 @@ where
parity: Parity::None,
change_after_confirm: ChangeAfterConfirm::ChangeAfterOK,
}),
false,
5,
)?;

if let Some(hostname) = self.config.hostname.clone() {
Expand Down Expand Up @@ -343,7 +343,7 @@ where
}

pub fn firmware_version(&mut self) -> Result<FirmwareVersion, Error> {
let response = self.send_internal(&EdmAtCmdWrapper(SoftwareVersion), false)?;
let response = self.send_internal(&EdmAtCmdWrapper(SoftwareVersion), true)?;
Ok(response.version)
}

Expand Down
2 changes: 1 addition & 1 deletion ublox-short-range/src/wifi/sta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ where
config_id: CONFIG_ID,
action: WifiStationAction::Reset,
}),
false,
true,
)?;
Ok(())
}
Expand Down

0 comments on commit 290609c

Please sign in to comment.