From e4dbff480fff2b5e33458c079b37b23c88643eea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Quentin?= Date: Wed, 12 Apr 2023 11:14:58 +0200 Subject: [PATCH] Add missing ROM functions for ESP32-S3/ESP32-S2 (#160) * Add missing ROM functions for ESP32-S3/ESP32-S2 * Cut down nocoex + big-heap heap-size --- esp-wifi/src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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;