Fix display flickering

This commit is contained in:
Luca 2023-08-03 22:59:00 +02:00
parent 4e3adb0062
commit 6be8231668
1 changed files with 5 additions and 1 deletions

View File

@ -134,7 +134,7 @@ where
) )
.draw(display)?; .draw(display)?;
display.flush() Ok(())
} }
#[entry] #[entry]
@ -297,6 +297,10 @@ fn main() -> ! {
if let Err(err) = display_text(&mut display, state_str, Baseline::Top) { if let Err(err) = display_text(&mut display, state_str, Baseline::Top) {
let _ = println_serial(&mut serial, stringify_display_error(err)); let _ = println_serial(&mut serial, stringify_display_error(err));
} }
if let Err(err) = display.flush() {
let _ = println_serial(&mut serial, stringify_display_error(err));
}
} }
if let Some(temperature) = current_temperature { if let Some(temperature) = current_temperature {