chore: improve some log msgs

Signed-off-by: Krzysztof Królczyk <Krzysztof.Krolczyk@o2.pl>
This commit is contained in:
Krzysztof Królczyk 2024-11-01 15:37:47 +01:00
parent e93ac532ac
commit af694d233c
No known key found for this signature in database
GPG Key ID: FDAE017682FDBEDC
2 changed files with 4 additions and 4 deletions

View File

@ -84,7 +84,7 @@ where
{
self.0.consume(|buf| {
#[cfg(feature = "packet-trace")]
trace!("rx: {:?}", buf);
trace!("embassy device rx: {:02x}", buf);
f(buf)
})
}
@ -105,7 +105,7 @@ where
self.0.consume(len, |buf| {
let r = f(buf);
#[cfg(feature = "packet-trace")]
trace!("tx: {:?}", buf);
trace!("embassy device tx: {:02x}", buf);
r
})
}

View File

@ -391,12 +391,12 @@ impl<'d> Stack<'d> {
self.with(|i| i.hardware_address)
}
/// Get whether the link is up.
/// Check whether the link is up.
pub fn is_link_up(&self) -> bool {
self.with(|i| i.link_up)
}
/// Get whether the network stack has a valid IP configuration.
/// Check whether the network stack has a valid IP configuration.
/// This is true if the network stack has a static IP configuration or if DHCP has completed
pub fn is_config_up(&self) -> bool {
let v4_up;