mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
Fix missing lifetime
This commit is contained in:
parent
336ef01b05
commit
354ff3bac3
@ -347,7 +347,7 @@ impl<'d> Pwm<'d> {
|
|||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
/// Split Pwm driver to allow separate duty cycle control of each channel
|
/// Split Pwm driver to allow separate duty cycle control of each channel
|
||||||
pub fn split(self) -> (Option<PwmOutput>, Option<PwmOutput>) {
|
pub fn split(self) -> (Option<PwmOutput<'d>>, Option<PwmOutput<'d>>) {
|
||||||
|
|
||||||
let pwm_output_a = if let Some(pin_a) = self.pin_a {
|
let pwm_output_a = if let Some(pin_a) = self.pin_a {
|
||||||
Some(PwmOutput::new(PwmChannelPin::A(pin_a), self.slice.clone()))
|
Some(PwmOutput::new(PwmChannelPin::A(pin_a), self.slice.clone()))
|
||||||
@ -380,7 +380,7 @@ impl <'d> PwmOutput<'d> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ErrorType for PwmOutput {
|
impl<'d> ErrorType for PwmOutput<'d> {
|
||||||
type Error = PwmError;
|
type Error = PwmError;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user