diff --git a/embassy-stm32/src/dcmi.rs b/embassy-stm32/src/dcmi.rs index b1e557ae..e70db90c 100644 --- a/embassy-stm32/src/dcmi.rs +++ b/embassy-stm32/src/dcmi.rs @@ -387,11 +387,7 @@ where if buffer.len() <= 0xffff { return self.capture_small(buffer).await; } else { - #[cfg(feature = "unsafe-double-buffered-dma")] return self.capture_giant(buffer).await; - - #[cfg(not(feature = "unsafe-double-buffered-dma"))] - panic!("For DCMI transfers with length > 0xffff, the `unsafe-double-buffered-dma` must be enabled."); } } @@ -445,7 +441,6 @@ where result } - #[cfg(feature = "unsafe-double-buffered-dma")] async fn capture_giant(&mut self, buffer: &mut [u32]) -> Result<(), Error> { use crate::dma::TransferOptions;