mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
SITL: fixed build with new ChipErase() call
This commit is contained in:
parent
b8b6c95efb
commit
5e0d937e50
@ -106,10 +106,11 @@ void DataFlash_APM1::PageErase (uint16_t PageAdr)
|
||||
}
|
||||
|
||||
|
||||
void DataFlash_APM1::ChipErase ()
|
||||
void DataFlash_APM1::ChipErase(void (*delay_cb)(unsigned long))
|
||||
{
|
||||
for (int i=0; DF_NUM_PAGES; i++) {
|
||||
PageErase(i);
|
||||
delay_cb(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user