Skip to content
Snippets Groups Projects
Commit 30a930f2 authored by Federico Lolli's avatar Federico Lolli
Browse files

changed log messages

parent 8ea8faa0
Branches
No related tags found
No related merge requests found
...@@ -259,7 +259,7 @@ impl Program { ...@@ -259,7 +259,7 @@ impl Program {
MessageReadError::Io(e) MessageReadError::Io(e)
if e.kind() == ErrorKind::WouldBlock || e.kind() == ErrorKind::TimedOut => if e.kind() == ErrorKind::WouldBlock || e.kind() == ErrorKind::TimedOut =>
{ {
debug!("Timeout while waiting for message"); debug!("No message received, retrying...");
Err(StepError::Timeout) Err(StepError::Timeout)
} }
_ => { _ => {
......
...@@ -114,8 +114,8 @@ impl Program { ...@@ -114,8 +114,8 @@ impl Program {
} }
fn wait_for_request(&self, local_address: Ipv4Addr) -> PResult<()> { fn wait_for_request(&self, local_address: Ipv4Addr) -> PResult<()> {
info!("Scanning for devices...");
let recv_endpoint = format!("udpin:{}:{}", local_address, DEFAULT_MAVLINK_PORT); let recv_endpoint = format!("udpin:{}:{}", local_address, DEFAULT_MAVLINK_PORT);
info!("Waiting requests...");
let mut recv_connection = mavlink::connect::<MavMessage>(&recv_endpoint).context( let mut recv_connection = mavlink::connect::<MavMessage>(&recv_endpoint).context(
format!("Failed to connect to receive endpoint {}", recv_endpoint), format!("Failed to connect to receive endpoint {}", recv_endpoint),
)?; )?;
...@@ -184,7 +184,7 @@ impl Program { ...@@ -184,7 +184,7 @@ impl Program {
MessageReadError::Io(e) MessageReadError::Io(e)
if e.kind() == ErrorKind::WouldBlock || e.kind() == ErrorKind::TimedOut => if e.kind() == ErrorKind::WouldBlock || e.kind() == ErrorKind::TimedOut =>
{ {
debug!("Timeout while waiting for message"); debug!("No message received, retrying...");
Err(StepError::Timeout) Err(StepError::Timeout)
} }
_ => { _ => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment