changed NET_STACK_SIZE & WEB_TASK_SIZE

This commit is contained in:
2025-10-07 22:48:17 +02:00
parent 082f1faba9
commit 92c7fec283
2 changed files with 8 additions and 4 deletions

View File

@@ -6,7 +6,10 @@ use embassy_time::{Duration, Timer};
use esp_wifi::wifi::WifiDevice;
use static_cell::make_static;
pub const NETWORK_STACK_SIZE: usize = 5;
use crate::webserver::WEB_TAKS_SIZE;
pub const NETWORK_STACK_SIZE: usize = WEB_TAKS_SIZE + 2; // + 2 for other network taks. Breaks
// without
pub fn setup_network<'a>(seed: u64, wifi: WifiDevice<'static>, spawner: &mut Spawner) -> Stack<'a> {
let gw_ip_addr_str = "192.168.2.1";