File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -103,12 +103,14 @@ impl<MODE> OutputPin for Pin<Output<MODE>> {
103
103
104
104
#[ inline( always) ]
105
105
fn set_high ( & mut self ) -> Result < ( ) , Self :: Error > {
106
- Ok ( unsafe { ( * self . port ) . set_high ( self . i ) } )
106
+ unsafe { ( * self . port ) . set_high ( self . i ) } ;
107
+ Ok ( ( ) )
107
108
}
108
109
109
110
#[ inline( always) ]
110
111
fn set_low ( & mut self ) -> Result < ( ) , Self :: Error > {
111
- Ok ( unsafe { ( * self . port ) . set_low ( self . i ) } )
112
+ unsafe { ( * self . port ) . set_low ( self . i ) }
113
+ Ok ( ( ) )
112
114
}
113
115
}
114
116
Original file line number Diff line number Diff line change 40
40
use core:: marker:: PhantomData ;
41
41
use core:: { ops:: Deref , ptr} ;
42
42
43
- use nb;
44
-
45
43
pub use embedded_hal:: spi:: { Mode , Phase , Polarity } ;
46
44
47
45
// TODO Put this inside the macro
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ use crate::rcc::{Clocks, Rcc};
35
35
36
36
use crate :: time:: Hertz ;
37
37
use embedded_hal:: timer:: { CountDown , Periodic } ;
38
- use nb;
39
38
use void:: Void ;
40
39
41
40
/// Hardware timers
You can’t perform that action at this time.
0 commit comments