Skip to content

Commit

Permalink
lcd_cam: i8080 fix bad len calculation (missed from ReadBuffer update) (
Browse files Browse the repository at this point in the history
  • Loading branch information
liebman authored Jul 29, 2024
1 parent 67bb6c5 commit dd2e475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp-hal/src/lcd_cam/lcd/i8080.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ where
let (ptr, len) = unsafe { data.read_buffer() };

self.setup_send(cmd.into(), dummy);
self.start_write_bytes_dma(ptr as _, len * size_of::<P::Word>())?;
self.start_write_bytes_dma(ptr as _, len)?;
self.start_send();

LcdDoneFuture::new().await;
Expand Down

0 comments on commit dd2e475

Please sign in to comment.