diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-08-07 13:01:33 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-08-07 13:01:33 +0000 |
| commit | 891c5ee10584cd990dad529e3506fe1328e4e69d (patch) | |
| tree | 314e49359b9730fec7bd2ed62ee10a2b954bac5c /examples/std/src/bin/net_udp.rs | |
| parent | d3ff0b184861fecf7d11e14bb90a39711e10176d (diff) | |
| parent | 59cb1531c91386cec8d7b209630b6b4d9eb7fd7c (diff) | |
Merge pull request #3232 from embassy-rs/misc-fixes-44
Misc fixes.
Diffstat (limited to 'examples/std/src/bin/net_udp.rs')
| -rw-r--r-- | examples/std/src/bin/net_udp.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/std/src/bin/net_udp.rs b/examples/std/src/bin/net_udp.rs index bee91990d..b2ba4915a 100644 --- a/examples/std/src/bin/net_udp.rs +++ b/examples/std/src/bin/net_udp.rs | |||
| @@ -50,12 +50,7 @@ async fn main_task(spawner: Spawner) { | |||
| 50 | // Init network stack | 50 | // Init network stack |
| 51 | static STACK: StaticCell<Stack<TunTapDevice>> = StaticCell::new(); | 51 | static STACK: StaticCell<Stack<TunTapDevice>> = StaticCell::new(); |
| 52 | static RESOURCES: StaticCell<StackResources<3>> = StaticCell::new(); | 52 | static RESOURCES: StaticCell<StackResources<3>> = StaticCell::new(); |
| 53 | let stack = &*STACK.init(Stack::new( | 53 | let stack = &*STACK.init(Stack::new(device, config, RESOURCES.init(StackResources::new()), seed)); |
| 54 | device, | ||
| 55 | config, | ||
| 56 | RESOURCES.init(StackResources::<3>::new()), | ||
| 57 | seed, | ||
| 58 | )); | ||
| 59 | 54 | ||
| 60 | // Launch network task | 55 | // Launch network task |
| 61 | spawner.spawn(net_task(stack)).unwrap(); | 56 | spawner.spawn(net_task(stack)).unwrap(); |
