Skip to content

Commit f96d2fd

Browse files
committed
InputPin for OpenDrain output only
1 parent 33852d8 commit f96d2fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/gpio.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ impl<MODE, const P: u8> StatefulOutputPin for PXx<Output<MODE>, P> {
256256

257257
impl<MODE, const P: u8> toggleable::Default for PXx<Output<MODE>, P> {}
258258

259-
impl<MODE, const P: u8> InputPin for PXx<Output<MODE>, P> {
259+
impl<const P: u8> InputPin for PXx<Output<OpenDrain>, P> {
260260
type Error = Infallible;
261261

262262
fn is_high(&self) -> Result<bool, Self::Error> {
@@ -787,7 +787,7 @@ impl<MODE, const P: u8, const N: u8> StatefulOutputPin for PX<Output<MODE>, P, N
787787

788788
impl<MODE, const P: u8, const N: u8> toggleable::Default for PX<Output<MODE>, P, N> {}
789789

790-
impl<MODE, const P: u8, const N: u8> InputPin for PX<Output<MODE>, P, N> {
790+
impl<const P: u8, const N: u8> InputPin for PX<Output<OpenDrain>, P, N> {
791791
type Error = Infallible;
792792

793793
fn is_high(&self) -> Result<bool, Self::Error> {
@@ -1159,7 +1159,7 @@ impl<MODE> StatefulOutputPin for Pin<Output<MODE>> {
11591159

11601160
impl<MODE> toggleable::Default for Pin<Output<MODE>> {}
11611161

1162-
impl<MODE> InputPin for Pin<Output<MODE>> {
1162+
impl InputPin for Pin<Output<OpenDrain>> {
11631163
type Error = core::convert::Infallible;
11641164

11651165
fn is_high(&self) -> Result<bool, Self::Error> {

0 commit comments

Comments
 (0)