This commit is contained in:
Kaitlyn Kenwell 2023-12-14 09:38:02 -05:00 committed by Dario Nieuwenhuis
parent 4757257ac0
commit 29114c849d

View File

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