diff --git a/boards/esp32-c3-devkitM-1/src/main.rs b/boards/esp32-c3-devkitM-1/src/main.rs index 68b6ec8059..5931d3837e 100644 --- a/boards/esp32-c3-devkitM-1/src/main.rs +++ b/boards/esp32-c3-devkitM-1/src/main.rs @@ -360,8 +360,10 @@ fn test_runner(tests: &[&dyn Fn()]) { BOARD = Some(board_kernel); PLATFORM = Some(&esp32_c3_board); PERIPHERALS = Some(peripherals); - SCHEDULER = - Some(components::sched::priority::PriorityComponent::new(board_kernel).finalize(())); + SCHEDULER = Some( + components::sched::priority::PriorityComponent::new(board_kernel) + .finalize(components::priority_component_static!()), + ); MAIN_CAP = Some(&create_capability!(capabilities::MainLoopCapability)); PLATFORM.map(|p| { diff --git a/boards/esp32-c3-devkitM-1/src/tests/mod.rs b/boards/esp32-c3-devkitM-1/src/tests/mod.rs index 6cc7d6832d..fa7bd80670 100644 --- a/boards/esp32-c3-devkitM-1/src/tests/mod.rs +++ b/boards/esp32-c3-devkitM-1/src/tests/mod.rs @@ -5,7 +5,6 @@ use crate::BOARD; use crate::CHIP; use crate::MAIN_CAP; -use crate::NUM_PROCS; use crate::PLATFORM; use kernel::debug;