journal_write_target

Function journal_write_target 

Source
pub async fn journal_write_target<F: JournalFlash>(
    flash: &mut F,
    current: Option<u32>,
    page0: u32,
    slot_size: usize,
) -> Result<u32, ()>
Expand description

Pick the write target for a two-page rotating journal starting at page0: the next erased slot after the current record, or the opposite page after erasing it.