From 41ce7d3b4053fce036628678a84886c4bba9444d Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sat, 20 Jul 2024 17:40:08 +0200 Subject: [PATCH] Removed compiler warnings --- rp2040/src/main.rs | 2 +- rp2040/src/status_led.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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