net: allocate space for 2 sockets, needed for dhcp.

This commit is contained in:
Dario Nieuwenhuis
2023-01-19 14:40:58 +01:00
parent 570ffab670
commit fe15a7beee
8 changed files with 8 additions and 8 deletions

View File

@ -115,7 +115,7 @@ async fn main(spawner: Spawner) {
let seed = u64::from_le_bytes(seed);
// Init network stack
let stack = &*singleton!(Stack::new(device, config, singleton!(StackResources::<1>::new()), seed));
let stack = &*singleton!(Stack::new(device, config, singleton!(StackResources::<2>::new()), seed));
unwrap!(spawner.spawn(net_task(stack)));