main: remove the critical_section from the logger since it isn't needed

This commit is contained in:
2026-01-05 12:59:00 +01:00
parent 23043a42a2
commit 6132efb7c4

View File

@@ -53,15 +53,12 @@ static WIFI_INIT: StaticCell<esp_radio::Controller<'static>> = StaticCell::new()
#[esp_rtos::main] #[esp_rtos::main]
async fn main(spawner: Spawner) { async fn main(spawner: Spawner) {
critical_section::with(|_| { esp_alloc::heap_allocator!(size: 128 * 1024);
RenderbugLogger::init_logger(); RenderbugLogger::init_logger();
});
let config = esp_hal::Config::default().with_cpu_clock(CpuClock::max()); let config = esp_hal::Config::default().with_cpu_clock(CpuClock::max());
let peripherals = esp_hal::init(config); let peripherals = esp_hal::init(config);
esp_alloc::heap_allocator!(size: 128 * 1024);
let sys_timer = SystemTimer::new(peripherals.SYSTIMER); let sys_timer = SystemTimer::new(peripherals.SYSTIMER);
esp_rtos::start(sys_timer.alarm0); esp_rtos::start(sys_timer.alarm0);
info!("Embassy initialized!"); info!("Embassy initialized!");