Fix: Timing Issues after display_frame

epd1in54 and epd2in9 were both missing a necessary wait_until_idle call at the end of their display_frame function which sometimes caused invalid/ignored commands/inputs afterwards.
This commit is contained in:
Chris
2019-04-06 08:52:42 +02:00
parent 9b6c7ada16
commit 63321f7e2c
3 changed files with 10 additions and 2 deletions
+4 -1
View File
@@ -217,7 +217,10 @@ where
self.interface.cmd(spi, Command::MASTER_ACTIVATION)?;
// MASTER Activation should not be interupted to avoid currption of panel images
// therefore a terminate command is send
self.interface.cmd(spi, Command::NOP)
self.interface.cmd(spi, Command::NOP)?;
self.wait_until_idle();
Ok(())
}
fn clear_frame(&mut self, spi: &mut SPI) -> Result<(), SPI::Error> {