fixed eink wakeup bug
All checks were successful
cargo_test_bench / Run Tests (push) Successful in 4m24s
cargo_test_bench / Run Benchmarks (push) Successful in 5m15s

This commit is contained in:
saji 2024-08-16 15:15:42 -05:00
parent afc6c12d9f
commit cfd1428c4c

View file

@ -64,6 +64,7 @@ impl EInkPanel for Wrapper {
#[instrument(skip_all)] #[instrument(skip_all)]
fn display(&mut self, img: &DitheredImage) -> Result<()> { fn display(&mut self, img: &DitheredImage) -> Result<()> {
let buf = img.into_display_buffer(); let buf = img.into_display_buffer();
self.panel.wake_up(&mut self.spi, &mut self.delay)?;
self.panel self.panel
.update_and_display_frame(&mut self.spi, &buf, &mut self.delay)?; .update_and_display_frame(&mut self.spi, &buf, &mut self.delay)?;
debug!("Finished updating frame"); debug!("Finished updating frame");