SITL: fixed build with new ChipErase() call

This commit is contained in:
Andrew Tridgell 2012-05-23 17:32:00 +10:00
parent b8b6c95efb
commit 5e0d937e50

View File

@ -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);
}
}