implement error view which displays all error on the display
This commit was merged in pull request #48.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
use alloc::boxed::Box;
|
||||
use core::error;
|
||||
use crate::peripherals::Peripherals;
|
||||
use core::future;
|
||||
|
||||
@@ -27,9 +29,10 @@ impl Navigable for JournalView {
|
||||
&self,
|
||||
outputs: &mut Outputs,
|
||||
_: &Peripherals,
|
||||
) -> impl core::future::Future<Output = ()> + Send {
|
||||
) -> impl core::future::Future<Output = Result<(), Box<dyn error::Error>>> + Send {
|
||||
async move {
|
||||
outputs.primary_display.clear(Rgb565::BLACK).unwrap();
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user