From f15c3a04d4b8fa5ace9827177220c11935b96fd3 Mon Sep 17 00:00:00 2001 From: Jacob Rosenthal Date: Thu, 11 Nov 2021 20:10:34 -0700 Subject: [PATCH] sequence must be live while DMA runs --- embassy-nrf/src/pwm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-nrf/src/pwm.rs b/embassy-nrf/src/pwm.rs index a850aac2..5fa57a77 100644 --- a/embassy-nrf/src/pwm.rs +++ b/embassy-nrf/src/pwm.rs @@ -62,7 +62,7 @@ impl<'d, T: Instance> SequencePwm<'d, T> { ch2: impl Unborrow + 'd, ch3: impl Unborrow + 'd, config: SequenceConfig, - sequence: &mut [u16], + sequence: &'d [u16], ) -> Result { slice_in_ram_or(sequence, Error::DMABufferNotInDataMemory)?;