MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / re_initialise

Method re_initialise

libraries/AP_FlashStorage/AP_FlashStorage.cpp:452–461  ·  view source on GitHub ↗

re-initialise, using current mem_buffer */

Source from the content-addressed store, hash-verified

450 re-initialise, using current mem_buffer
451 */
452bool AP_FlashStorage::re_initialise(void)
453{
454 if (!flash_erase_ok()) {
455 return false;
456 }
457 if (!erase_all()) {
458 return false;
459 }
460 return write_all();
461}
462
463#if AP_FLASHSTORAGE_TYPE == AP_FLASHSTORAGE_TYPE_H7
464/*

Callers 3

_flash_write_dataMethod · 0.80
_flash_write_dataMethod · 0.80
_flash_write_dataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected