Fix display flickering
This commit is contained in:
parent
4e3adb0062
commit
6be8231668
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue