aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f7/src/bin/eth.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-01-19 14:40:58 +0100
committerDario Nieuwenhuis <[email protected]>2023-01-19 14:44:01 +0100
commitfe15a7beee5f948b1e4c1cb8ab8e5cc85efb4662 (patch)
tree7711547b3b731e148d2b8182e4fafd10f3c840db /examples/stm32f7/src/bin/eth.rs
parent570ffab6703083f4e7f08a982afbf1c6de93b801 (diff)
net: allocate space for 2 sockets, needed for dhcp.
Diffstat (limited to 'examples/stm32f7/src/bin/eth.rs')
-rw-r--r--examples/stm32f7/src/bin/eth.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32f7/src/bin/eth.rs b/examples/stm32f7/src/bin/eth.rs
index 6f33a4f8b..571a6c1b9 100644
--- a/examples/stm32f7/src/bin/eth.rs
+++ b/examples/stm32f7/src/bin/eth.rs
@@ -77,7 +77,7 @@ async fn main(spawner: Spawner) -> ! {
77 //}); 77 //});
78 78
79 // Init network stack 79 // Init network stack
80 let stack = &*singleton!(Stack::new(device, config, singleton!(StackResources::<1>::new()), seed)); 80 let stack = &*singleton!(Stack::new(device, config, singleton!(StackResources::<2>::new()), seed));
81 81
82 // Launch network task 82 // Launch network task
83 unwrap!(spawner.spawn(net_task(&stack))); 83 unwrap!(spawner.spawn(net_task(&stack)));