Skip to content

Commit b781363

Browse files
Update to newest non v1 of embedded-hal (#23)
* update version * fix cargo check and deprecations
1 parent c0e58fb commit b781363

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exclude = [
1515
]
1616

1717
[dependencies]
18-
embedded-hal = "=0.2.2"
18+
embedded-hal = "0.2.7"
1919
bit_reverse = { version = "0.1.7", default-features = false }
2020
bitflags = "1.0"
2121
byteorder = { version = "1.2", default-features = false }

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ extern crate embedded_hal as hal;
6767
use bit_reverse::ParallelReverse;
6868
use core::fmt;
6969
use hal::blocking::spi;
70-
use hal::digital::OutputPin;
70+
use hal::digital::v2::OutputPin;
7171

7272
use baton::Baton;
7373
use classic::{Classic, GamepadButtons};
@@ -295,7 +295,7 @@ where
295295
pub fn new(spi: SPI, mut select: Option<CS>) -> Self {
296296
// If a select pin was provided, disable the controller for now
297297
if let Some(ref mut x) = select {
298-
x.set_high();
298+
let _ = x.set_high();
299299
}
300300

301301
Self {
@@ -329,13 +329,13 @@ where
329329
Self::flip(result);
330330

331331
if let Some(ref mut x) = self.select {
332-
x.set_low();
332+
let _ = x.set_low();
333333
}
334334

335335
self.dev.transfer(result)?;
336336

337337
if let Some(ref mut x) = self.select {
338-
x.set_high();
338+
let _ = x.set_high();
339339
}
340340

341341
Self::flip(result);

0 commit comments

Comments
 (0)