aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32l4
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/stm32l4
parent21edbd3c17837f9a3f196fe1bdda4a065805d12f (diff)
examples: ensure at least 3 sockets to avoid running out (DHCP, DNS, the user's)
Diffstat (limited to 'examples/stm32l4')
-rw-r--r--examples/stm32l4/src/bin/spe_adin1110_http_server.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/examples/stm32l4/src/bin/spe_adin1110_http_server.rs b/examples/stm32l4/src/bin/spe_adin1110_http_server.rs
index 33149144c..bd633cecb 100644
--- a/examples/stm32l4/src/bin/spe_adin1110_http_server.rs
+++ b/examples/stm32l4/src/bin/spe_adin1110_http_server.rs
@@ -207,13 +207,8 @@ async fn main(spawner: Spawner) {
207 207
208 // Init network stack 208 // Init network stack
209 static STACK: StaticCell<Stack<Device<'static>>> = StaticCell::new(); 209 static STACK: StaticCell<Stack<Device<'static>>> = StaticCell::new();
210 static RESOURCES: StaticCell<StackResources<2>> = StaticCell::new(); 210 static RESOURCES: StaticCell<StackResources<3>> = StaticCell::new();
211 let stack = &*STACK.init(Stack::new( 211 let stack = &*STACK.init(Stack::new(device, ip_cfg, RESOURCES.init(StackResources::new()), seed));
212 device,
213 ip_cfg,
214 RESOURCES.init(StackResources::<2>::new()),
215 seed,
216 ));
217 212
218 // Launch network task 213 // Launch network task
219 unwrap!(spawner.spawn(net_task(stack))); 214 unwrap!(spawner.spawn(net_task(stack)));