pub fn format_external(&mut self) -> Result<(), Error> {
        let external_flash = self.external_flash.as_mut().ok_or(Error::NoExternalFlash)?;
        nb::block!(external_flash.erase())?;
        Ok(())
    }
/// Fully erases the external flash bank, ensuring there are no leftover images
/// and future writes to the external flash are as fast as possible.
Fully erases the external flash bank, ensuring there are no leftover images
and future writes to the external flash are as fast as possible.
Fully erases the external flash bank ensuring there are no leftover images and future writes to the external flash are as fast as possible .
pub fn format_external(&mut self) -> Result<(), Error> {
        let external_flash = self.external_flash.as_mut().ok_or(Error::NoExternalFlash)?;
        nb::block!(external_flash.erase())?;
        Ok(())
    }
pub fn format_external ( & mut self ) -> Result < ( ) , Error > { let external_flash = self . external_flash . as_mut ( ) . ok_or ( Error :: NoExternalFlash ) ? ; nb :: block ! ( external_flash erase ( ) ) ? ; Ok ( ( ) ) }
Fully erases the external flash bank, ensuring there are no leftover images
and future writes to the external flash are as fast as possible.
Fully erases the external flash bank ensuring there are no leftover images and future writes to the external flash are as fast as possible .
&mut self
&mut self