Skip to content

Commit

Permalink
Constrain to static Flex
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Nov 5, 2024
1 parent 50cce6e commit 8627ac4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions esp-hal/src/gpio/interconnect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,11 @@ where
}
}

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

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

0 comments on commit 8627ac4

Please sign in to comment.