mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
chore: improve some log msgs
Signed-off-by: Krzysztof Królczyk <Krzysztof.Krolczyk@o2.pl>
This commit is contained in:
parent
e93ac532ac
commit
af694d233c
@ -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
|
||||
})
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user