RKTK API Docs RKTK Home Repo

Function display_message_if_panicked

Source
pub async fn display_message_if_panicked<D: DisplayDriver>(display: &mut D)
Expand description

Display panic message on display is exists. This is intended to be called before rktk::task::start and takes a display builder.

If previous panic message exists, this function will display it on the display and return None. Otherwise, it will return the display builder.

When None is returned, caller can stop execution using something like [cortex_m::asm::udf]