File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ exclude = [
1515]
1616
1717[dependencies ]
18- embedded-hal = " = 0.2.2 "
18+ embedded-hal = " 0.2.7 "
1919bit_reverse = { version = " 0.1.7" , default-features = false }
2020bitflags = " 1.0"
2121byteorder = { version = " 1.2" , default-features = false }
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ extern crate embedded_hal as hal;
6767use bit_reverse:: ParallelReverse ;
6868use core:: fmt;
6969use hal:: blocking:: spi;
70- use hal:: digital:: OutputPin ;
70+ use hal:: digital:: v2 :: OutputPin ;
7171
7272use baton:: Baton ;
7373use 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) ;
You can’t perform that action at this time.
0 commit comments