Merge #737
737: Remove unnecessary feature gating for giant transfers in DCMI r=Dirbaio a=matoushybl Co-authored-by: Matous Hybl <hyblmatous@gmail.com>
This commit is contained in:
commit
5b3aaaaa9c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user