re-initialise, using current mem_buffer */
| 450 | re-initialise, using current mem_buffer |
| 451 | */ |
| 452 | bool 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 | /* |
no outgoing calls
no test coverage detected