From d94b24ab6e5c0b4fb03dbccf2341c0d796f6ae63 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Tue, 20 Jul 2021 18:39:25 +0200 Subject: [PATCH] Implement `InputPin` regardless of mode --- nrf-hal-common/src/gpio.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nrf-hal-common/src/gpio.rs b/nrf-hal-common/src/gpio.rs index 77e2aa73..77d37efe 100644 --- a/nrf-hal-common/src/gpio.rs +++ b/nrf-hal-common/src/gpio.rs @@ -259,7 +259,7 @@ impl Pin { } } -impl InputPin for Pin> { +impl InputPin for Pin { type Error = Void; fn is_high(&self) -> Result { @@ -529,7 +529,7 @@ macro_rules! gpio { } } - impl InputPin for $PXi> { + impl InputPin for $PXi { type Error = Void; fn is_high(&self) -> Result {