aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/timer
diff options
context:
space:
mode:
authorRaulIQ <[email protected]>2025-10-02 16:17:05 +0300
committerRaulIQ <[email protected]>2025-10-02 16:17:05 +0300
commitcde24a3ef1117653ba5ed4184102b33f745782fb (patch)
tree99647a4006c354df56e68c4bb1b1dbac6f23292d /embassy-stm32/src/timer
parent73b1d46e2b7eacda184f1d63cd0fcedf990e5fda (diff)
style: cargo fmt
Diffstat (limited to 'embassy-stm32/src/timer')
-rw-r--r--embassy-stm32/src/timer/input_capture.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/embassy-stm32/src/timer/input_capture.rs b/embassy-stm32/src/timer/input_capture.rs
index d8dbdee66..e6739fbc1 100644
--- a/embassy-stm32/src/timer/input_capture.rs
+++ b/embassy-stm32/src/timer/input_capture.rs
@@ -168,7 +168,8 @@ impl<'d, T: GeneralInstance4Channel> InputCapture<'d, T> {
168 let original_cc_dma_enable_state = self.inner.get_cc_dma_enable_state(M::CHANNEL); 168 let original_cc_dma_enable_state = self.inner.get_cc_dma_enable_state(M::CHANNEL);
169 169
170 self.inner.set_input_ti_selection(M::CHANNEL, InputTISelection::Normal); 170 self.inner.set_input_ti_selection(M::CHANNEL, InputTISelection::Normal);
171 self.inner.set_input_capture_mode(M::CHANNEL, InputCaptureMode::BothEdges); 171 self.inner
172 .set_input_capture_mode(M::CHANNEL, InputCaptureMode::BothEdges);
172 173
173 if !original_cc_dma_enable_state { 174 if !original_cc_dma_enable_state {
174 self.inner.set_cc_dma_enable_state(M::CHANNEL, true); 175 self.inner.set_cc_dma_enable_state(M::CHANNEL, true);