Update smoltcp.
This commit is contained in:
+2
-3
@@ -38,8 +38,7 @@ default-features = false
|
||||
features = ["release_max_level_off"]
|
||||
|
||||
[dependencies.smoltcp]
|
||||
path = "../smoltcp"
|
||||
# git = "https://github.com/batonius/smoltcp.git"
|
||||
# branch = "default_route"
|
||||
git = "https://github.com/batonius/smoltcp.git"
|
||||
branch = "default_route"
|
||||
default-features = false
|
||||
features = ["std", "log", "socket-raw", "socket-udp", "socket-tcp"]
|
||||
|
||||
@@ -53,10 +53,10 @@ impl smoltcp::phy::Device for NetworkDevice {
|
||||
type RxBuffer = Buffer;
|
||||
type TxBuffer = TxBuffer;
|
||||
|
||||
fn limits(&self) -> smoltcp::phy::DeviceLimits {
|
||||
let mut limits = smoltcp::phy::DeviceLimits::default();
|
||||
fn capabilities(&self) -> smoltcp::phy::DeviceCapabilities {
|
||||
let mut limits = smoltcp::phy::DeviceCapabilities::default();
|
||||
limits.max_transmission_unit = Self::MTU;
|
||||
limits.max_burst_size = Some(1);
|
||||
limits.max_burst_size = Some(5);
|
||||
limits
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user