Update smoltcp

parent ac5da393
......@@ -29,7 +29,12 @@ features = ["release_max_level_warn"]
[dependencies.smoltcp]
path = "smoltcp"
default-features = false
features = ["std", "socket-raw", "proto-ipv4", "socket-udp", "socket-tcp", "socket-icmp"]
features = [
"std",
"ethernet",
"proto-ipv4",
"socket-raw", "socket-icmp", "socket-udp", "socket-tcp"
]
#For debugging: "log", "verbose"
[profile.release]
......
Subproject commit 30793fc901dc3a836e3177cc2b1e782389748fd5
Subproject commit 9eae8d296b96f95c352ec0df14d899df4790f780
......@@ -45,11 +45,11 @@ pub struct RxToken {
}
impl smoltcp::phy::RxToken for RxToken {
fn consume<R, F>(self, _timestamp: Instant, f: F) -> smoltcp::Result<R>
fn consume<R, F>(mut self, _timestamp: Instant, f: F) -> smoltcp::Result<R>
where
F: FnOnce(&[u8]) -> smoltcp::Result<R>,
F: FnOnce(&mut [u8]) -> smoltcp::Result<R>,
{
f(&self.buffer)
f(&mut self.buffer)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment