SITL: fixed build with new ChipErase() call

This commit is contained in:
Andrew Tridgell 2012-05-23 17:32:00 +10:00
parent 353186e822
commit 6e444f6b64
1 changed files with 2 additions and 1 deletions

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