From 36d8c42d50d3a3032be4090fc817399b2448afb2 Mon Sep 17 00:00:00 2001 From: Naxdy Date: Mon, 8 Apr 2024 22:47:08 +0200 Subject: [PATCH] chore(main): remove unused import --- src/main.rs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3e126a0..244f920 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,8 +30,8 @@ use gpio::{Level, Output}; use input::{update_button_state_task, update_stick_states_task}; use static_cell::StaticCell; +use crate::config::enter_config_mode_task; use crate::gcc_hid::rumble_task; -use crate::{config::enter_config_mode_task, input::input_integrity_benchmark}; use {defmt_rtt as _, panic_probe as _}; @@ -104,21 +104,6 @@ fn main() -> ! { }); }); - // Stick loop has to run on core0 because it makes use of SPI0. - // Perhaps in the future we can rewire the board to have it make use of SPI1 instead. - // This way it could be the sole task running on core1, and everything else could happen on core0. - // Also, it needs to run on a higher prio executor to ensure consistent polling. - // interrupt::SWI_IRQ_1.set_priority(interrupt::Priority::P0); - // let spawner_high = EXECUTOR_HIGH.start(interrupt::SWI_IRQ_1); - // spawner_high - // .spawn(update_stick_states_task( - // spi, - // spi_acs, - // spi_ccs, - // controller_config.clone(), - // )) - // .unwrap(); - let executor0 = EXECUTOR0.init(Executor::new()); info!("Initialized.");