This commit is contained in:
Kaitlyn Kenwell 2023-12-14 09:38:02 -05:00
parent e27e00f628
commit c1438fe87b

View File

@ -220,9 +220,9 @@ pub struct BlockingFirmwareState<'d, STATE> {
impl<'d, STATE: NorFlash> BlockingFirmwareState<'d, STATE> {
/// Creates a firmware state instance from a FirmwareUpdaterConfig, with a buffer for magic content and state partition.
///
///
/// # Safety
///
///
/// The `aligned` buffer must have a size of STATE::WRITE_SIZE, and follow the alignment rules for the flash being read from
/// and written to.
pub fn from_config<DFU: NorFlash>(config: FirmwareUpdaterConfig<DFU, STATE>, aligned: &'d mut [u8]) -> Self {