diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-05-28 22:34:07 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-05-28 22:34:07 +0200 |
| commit | b4c11695cf43dcdd0aa7a35798a15c923c7844c4 (patch) | |
| tree | 8d5147e4449f685a7439bacc70edd06729689f48 | |
| parent | 773c3570e76ad6a6e2b8b8d4984cd658c2470843 (diff) | |
Update smoltcp
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | embassy-net/src/config/dhcp.rs | 6 |
2 files changed, 4 insertions, 4 deletions
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" } | |||
| 46 | embassy-std = { git = "https://github.com/embassy-rs/embassy" } | 46 | embassy-std = { git = "https://github.com/embassy-rs/embassy" } |
| 47 | embassy-macros = { git = "https://github.com/embassy-rs/embassy" } | 47 | embassy-macros = { git = "https://github.com/embassy-rs/embassy" } |
| 48 | embassy-traits = { git = "https://github.com/embassy-rs/embassy" } | 48 | embassy-traits = { git = "https://github.com/embassy-rs/embassy" } |
| 49 | smoltcp = { git = "https://github.com/smoltcp-rs/smoltcp", rev="9ce3d9505ef5455bb049713b9262561d78ebf330" } \ No newline at end of file | 49 | 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 { | |||
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | match socket.poll() { | 40 | match socket.poll() { |
| 41 | Dhcpv4Event::NoChange => Event::NoChange, | 41 | None => Event::NoChange, |
| 42 | Dhcpv4Event::Deconfigured => Event::Deconfigured, | 42 | Some(Dhcpv4Event::Deconfigured) => Event::Deconfigured, |
| 43 | Dhcpv4Event::Configured(config) => { | 43 | Some(Dhcpv4Event::Configured(config)) => { |
| 44 | let mut dns_servers = Vec::new(); | 44 | let mut dns_servers = Vec::new(); |
| 45 | for s in &config.dns_servers { | 45 | for s in &config.dns_servers { |
| 46 | if let Some(addr) = s { | 46 | if let Some(addr) = s { |
