Skip to content

Commit

Permalink
Fix unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominaezzz committed Apr 26, 2024
1 parent 6e049d9 commit 9abd4c8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions esp-hal/src/lcd_cam/cam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,14 @@ impl<'d, RX: Rx> Camera<'d, RX> {

assert_eq!(self.bus_width, size_of::<RXBUF::Word>());

self.rx_channel.prepare_transfer_without_start(
circular,
DmaPeripheral::LcdCam,
ptr as _,
len * size_of::<RXBUF::Word>(),
)?;
unsafe {
self.rx_channel.prepare_transfer_without_start(
circular,
DmaPeripheral::LcdCam,
ptr as _,
len * size_of::<RXBUF::Word>(),
)?;
}
self.rx_channel.start_transfer()
}

Expand Down

0 comments on commit 9abd4c8

Please sign in to comment.