fixed eink wakeup bug
This commit is contained in:
parent
afc6c12d9f
commit
cfd1428c4c
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue