main: remove the critical_section from the logger since it isn't needed
This commit is contained in:
@@ -53,15 +53,12 @@ static WIFI_INIT: StaticCell<esp_radio::Controller<'static>> = StaticCell::new()
|
||||
|
||||
#[esp_rtos::main]
|
||||
async fn main(spawner: Spawner) {
|
||||
critical_section::with(|_| {
|
||||
esp_alloc::heap_allocator!(size: 128 * 1024);
|
||||
RenderbugLogger::init_logger();
|
||||
});
|
||||
|
||||
let config = esp_hal::Config::default().with_cpu_clock(CpuClock::max());
|
||||
let peripherals = esp_hal::init(config);
|
||||
|
||||
esp_alloc::heap_allocator!(size: 128 * 1024);
|
||||
|
||||
let sys_timer = SystemTimer::new(peripherals.SYSTIMER);
|
||||
esp_rtos::start(sys_timer.alarm0);
|
||||
info!("Embassy initialized!");
|
||||
|
||||
Reference in New Issue
Block a user