diff --git a/esp-hal/src/gpio/interconnect.rs b/esp-hal/src/gpio/interconnect.rs index 55f50ceaba..75cfd6019e 100644 --- a/esp-hal/src/gpio/interconnect.rs +++ b/esp-hal/src/gpio/interconnect.rs @@ -226,11 +226,11 @@ where } } -impl

From> for InputSignal +impl

From> for InputSignal where P: InputPin, { - fn from(input: Flex<'_, P>) -> Self { + fn from(input: Flex<'static, P>) -> Self { Self::new(input.degrade()) } } @@ -361,11 +361,11 @@ where } } -impl

From> for OutputSignal +impl

From> for OutputSignal where P: OutputPin, { - fn from(input: Flex<'_, P>) -> Self { + fn from(input: Flex<'static, P>) -> Self { Self::new(input.degrade()) } }