diff options
| author | eZio Pan <[email protected]> | 2024-01-08 19:18:24 +0800 |
|---|---|---|
| committer | eZio Pan <[email protected]> | 2024-01-08 19:18:24 +0800 |
| commit | b16cc04036da8bcbfe273cd796c092e8e2a074c9 (patch) | |
| tree | 1582b1f14ee17c2cab35012c2bd045f1b31f1dbc /embassy-stm32/src/timer/simple_pwm.rs | |
| parent | 890a1269d05297993ffa7b537739926eb30d5436 (diff) | |
bug fix
Diffstat (limited to 'embassy-stm32/src/timer/simple_pwm.rs')
| -rw-r--r-- | embassy-stm32/src/timer/simple_pwm.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/embassy-stm32/src/timer/simple_pwm.rs b/embassy-stm32/src/timer/simple_pwm.rs index 709278c0c..ba089ac8b 100644 --- a/embassy-stm32/src/timer/simple_pwm.rs +++ b/embassy-stm32/src/timer/simple_pwm.rs | |||
| @@ -245,7 +245,8 @@ macro_rules! impl_waveform_chx { | |||
| 245 | let original_cc_dma_on_update = self.inner.get_cc_dma_selection() == Ccds::ONUPDATE; | 245 | let original_cc_dma_on_update = self.inner.get_cc_dma_selection() == Ccds::ONUPDATE; |
| 246 | let original_cc_dma_enabled = self.inner.get_cc_dma_enable_state(cc_channel); | 246 | let original_cc_dma_enabled = self.inner.get_cc_dma_enable_state(cc_channel); |
| 247 | 247 | ||
| 248 | if original_cc_dma_on_update { | 248 | // redirect CC DMA request onto Update Event |
| 249 | if !original_cc_dma_on_update { | ||
| 249 | self.inner.set_cc_dma_selection(Ccds::ONUPDATE) | 250 | self.inner.set_cc_dma_selection(Ccds::ONUPDATE) |
| 250 | } | 251 | } |
| 251 | 252 | ||
