From 8627ac4e003f125519979142305026db7693650b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Thu, 31 Oct 2024 19:06:37 +0100 Subject: [PATCH] Constrain to static Flex --- esp-hal/src/gpio/interconnect.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()) } }