diff --git a/Cargo.toml b/Cargo.toml index 8ed84db99..5061494df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,4 +46,4 @@ embassy = { git = "https://github.com/embassy-rs/embassy" } embassy-std = { git = "https://github.com/embassy-rs/embassy" } embassy-macros = { git = "https://github.com/embassy-rs/embassy" } embassy-traits = { git = "https://github.com/embassy-rs/embassy" } -smoltcp = { git = "https://github.com/smoltcp-rs/smoltcp", rev="9ce3d9505ef5455bb049713b9262561d78ebf330" } \ No newline at end of file +smoltcp = { git = "https://github.com/smoltcp-rs/smoltcp", rev="ec59aba5e10cf91df0c9253d9c2aca4dd143d2ff" } \ No newline at end of file diff --git a/embassy-net/src/config/dhcp.rs b/embassy-net/src/config/dhcp.rs index 007c398b3..f0c144321 100644 --- a/embassy-net/src/config/dhcp.rs +++ b/embassy-net/src/config/dhcp.rs @@ -38,9 +38,9 @@ impl Configurator for DhcpConfigurator { } match socket.poll() { - Dhcpv4Event::NoChange => Event::NoChange, - Dhcpv4Event::Deconfigured => Event::Deconfigured, - Dhcpv4Event::Configured(config) => { + None => Event::NoChange, + Some(Dhcpv4Event::Deconfigured) => Event::Deconfigured, + Some(Dhcpv4Event::Configured(config)) => { let mut dns_servers = Vec::new(); for s in &config.dns_servers { if let Some(addr) = s {