diff options
| -rw-r--r-- | embassy-net/src/driver_util.rs | 4 | ||||
| -rw-r--r-- | embassy-net/src/lib.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/embassy-net/src/driver_util.rs b/embassy-net/src/driver_util.rs index f51641425..536f4c3d9 100644 --- a/embassy-net/src/driver_util.rs +++ b/embassy-net/src/driver_util.rs | |||
| @@ -84,7 +84,7 @@ where | |||
| 84 | { | 84 | { |
| 85 | self.0.consume(|buf| { | 85 | self.0.consume(|buf| { |
| 86 | #[cfg(feature = "packet-trace")] | 86 | #[cfg(feature = "packet-trace")] |
| 87 | trace!("rx: {:?}", buf); | 87 | trace!("embassy device rx: {:02x}", buf); |
| 88 | f(buf) | 88 | f(buf) |
| 89 | }) | 89 | }) |
| 90 | } | 90 | } |
| @@ -105,7 +105,7 @@ where | |||
| 105 | self.0.consume(len, |buf| { | 105 | self.0.consume(len, |buf| { |
| 106 | let r = f(buf); | 106 | let r = f(buf); |
| 107 | #[cfg(feature = "packet-trace")] | 107 | #[cfg(feature = "packet-trace")] |
| 108 | trace!("tx: {:?}", buf); | 108 | trace!("embassy device tx: {:02x}", buf); |
| 109 | r | 109 | r |
| 110 | }) | 110 | }) |
| 111 | } | 111 | } |
diff --git a/embassy-net/src/lib.rs b/embassy-net/src/lib.rs index a7b7efa87..22e7358ac 100644 --- a/embassy-net/src/lib.rs +++ b/embassy-net/src/lib.rs | |||
| @@ -391,12 +391,12 @@ impl<'d> Stack<'d> { | |||
| 391 | self.with(|i| i.hardware_address) | 391 | self.with(|i| i.hardware_address) |
| 392 | } | 392 | } |
| 393 | 393 | ||
| 394 | /// Get whether the link is up. | 394 | /// Check whether the link is up. |
| 395 | pub fn is_link_up(&self) -> bool { | 395 | pub fn is_link_up(&self) -> bool { |
| 396 | self.with(|i| i.link_up) | 396 | self.with(|i| i.link_up) |
| 397 | } | 397 | } |
| 398 | 398 | ||
| 399 | /// Get whether the network stack has a valid IP configuration. | 399 | /// Check whether the network stack has a valid IP configuration. |
| 400 | /// This is true if the network stack has a static IP configuration or if DHCP has completed | 400 | /// This is true if the network stack has a static IP configuration or if DHCP has completed |
| 401 | pub fn is_config_up(&self) -> bool { | 401 | pub fn is_config_up(&self) -> bool { |
| 402 | let v4_up; | 402 | let v4_up; |
