aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32h5/src
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-08-05 21:38:30 +0200
committerDario Nieuwenhuis <[email protected]>2024-08-07 14:58:20 +0200
commit59cb1531c91386cec8d7b209630b6b4d9eb7fd7c (patch)
tree9d5268c5fc9ea6014a69313eeff268b5d3aed256 /examples/stm32h5/src
parent21edbd3c17837f9a3f196fe1bdda4a065805d12f (diff)
examples: ensure at least 3 sockets to avoid running out (DHCP, DNS, the user's)
Diffstat (limited to 'examples/stm32h5/src')
-rw-r--r--examples/stm32h5/src/bin/eth.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/examples/stm32h5/src/bin/eth.rs b/examples/stm32h5/src/bin/eth.rs
index 2370656e6..65cfad8c9 100644
--- a/examples/stm32h5/src/bin/eth.rs
+++ b/examples/stm32h5/src/bin/eth.rs
@@ -93,13 +93,8 @@ async fn main(spawner: Spawner) -> ! {
93 93
94 // Init network stack 94 // Init network stack
95 static STACK: StaticCell<Stack<Device>> = StaticCell::new(); 95 static STACK: StaticCell<Stack<Device>> = StaticCell::new();
96 static RESOURCES: StaticCell<StackResources<2>> = StaticCell::new(); 96 static RESOURCES: StaticCell<StackResources<3>> = StaticCell::new();
97 let stack = &*STACK.init(Stack::new( 97 let stack = &*STACK.init(Stack::new(device, config, RESOURCES.init(StackResources::new()), seed));
98 device,
99 config,
100 RESOURCES.init(StackResources::<2>::new()),
101 seed,
102 ));
103 98
104 // Launch network task 99 // Launch network task
105 unwrap!(spawner.spawn(net_task(&stack))); 100 unwrap!(spawner.spawn(net_task(&stack)));