diff --git a/rp2040/src/main.rs b/rp2040/src/main.rs index 84ca5b9..af1d038 100644 --- a/rp2040/src/main.rs +++ b/rp2040/src/main.rs @@ -327,7 +327,7 @@ fn main() -> ! { let mut idle: bool = false; let mut usb_active: bool = false; let mut elrs_active: bool = false; - let mut elrs_connected: bool = false; + let _elrs_connected: bool = false; let mut calibration_active: bool = false; let mut throttle_hold: bool = false; diff --git a/rp2040/src/status_led.rs b/rp2040/src/status_led.rs index 40abfc7..f5a23ec 100644 --- a/rp2040/src/status_led.rs +++ b/rp2040/src/status_led.rs @@ -94,9 +94,11 @@ where } /// Get current status mode + #[allow(dead_code)] pub fn get_mode(&self) -> StatusMode { self.mode } + #[warn(dead_code)] /// Update status LED /// Depending on the mode, the LED will be set to a different colour