From 7b82396fdd75dbb437ea76962788f9cdf70253b7 Mon Sep 17 00:00:00 2001 From: Rex Magana Date: Wed, 16 Jul 2025 13:19:31 -0700 Subject: [PATCH 1/2] update version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d93e5ab..1753393 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ exclude = [ ] [dependencies] -embedded-hal = "=0.2.2" +embedded-hal = "0.2.7" bit_reverse = { version = "0.1.7", default-features = false } bitflags = "1.0" byteorder = { version = "1.2", default-features = false } From 7e4d76b96f2b587763789a8646de10a21f5cd5bc Mon Sep 17 00:00:00 2001 From: Rex Magana Date: Wed, 16 Jul 2025 13:19:39 -0700 Subject: [PATCH 2/2] fix cargo check and deprecations --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ad885e4..5fae846 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -67,7 +67,7 @@ extern crate embedded_hal as hal; use bit_reverse::ParallelReverse; use core::fmt; use hal::blocking::spi; -use hal::digital::OutputPin; +use hal::digital::v2::OutputPin; use baton::Baton; use classic::{Classic, GamepadButtons}; @@ -295,7 +295,7 @@ where pub fn new(spi: SPI, mut select: Option) -> Self { // If a select pin was provided, disable the controller for now if let Some(ref mut x) = select { - x.set_high(); + let _ = x.set_high(); } Self { @@ -329,13 +329,13 @@ where Self::flip(result); if let Some(ref mut x) = self.select { - x.set_low(); + let _ = x.set_low(); } self.dev.transfer(result)?; if let Some(ref mut x) = self.select { - x.set_high(); + let _ = x.set_high(); } Self::flip(result);