diff --git a/esp-wifi/src/lib.rs b/esp-wifi/src/lib.rs index 8f6e06e0ef0..b29b47cbbff 100644 --- a/esp-wifi/src/lib.rs +++ b/esp-wifi/src/lib.rs @@ -92,8 +92,11 @@ const HEAP_SIZE: usize = 64 * 1024; #[cfg(all(coex, not(feature = "big-heap")))] const HEAP_SIZE: usize = 64 * 1024; -#[cfg(all(not(coex), feature = "big-heap"))] -const HEAP_SIZE: usize = 100 * 1024; +#[cfg(all(not(coex), not(feature = "esp32s2"), feature = "big-heap"))] +const HEAP_SIZE: usize = 92 * 1024; + +#[cfg(all(not(coex), feature = "esp32s2", feature = "big-heap"))] +const HEAP_SIZE: usize = 72 * 1024; #[cfg(all(coex, feature = "big-heap"))] const HEAP_SIZE: usize = 100 * 1024;