remove error in previous commit

embedded-hal-1.0
Chris 2018-10-10 21:11:05 +02:00
parent 4155bd616b
commit 2e4ee5308a
1 changed files with 2 additions and 2 deletions

View File

@ -257,7 +257,7 @@ where
}
fn clear_frame(&mut self, spi: &mut SPI) -> Result<(), SPI::Error> {
self.send_resolution(spi).expect("resolution error");
self.send_resolution(spi)?;
//let size = WIDTH as usize / 8 * HEIGHT as usize;
let color_value = self.color.get_byte_value();
@ -267,7 +267,7 @@ where
spi,
Command::DATA_START_TRANSMISSION_1,
&[color_value; WIDTH as usize / 8 * HEIGHT as usize]
).expect("data trans 1 error");
)?;
//TODO: Removal of delay. TEST!
//self.delay_ms(2);