mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
SITL: fixed ChipErase()
the loop never completed
This commit is contained in:
parent
5e0d937e50
commit
734dcebb2a
@ -108,7 +108,7 @@ void DataFlash_APM1::PageErase (uint16_t PageAdr)
|
||||
|
||||
void DataFlash_APM1::ChipErase(void (*delay_cb)(unsigned long))
|
||||
{
|
||||
for (int i=0; DF_NUM_PAGES; i++) {
|
||||
for (int i=0; i<DF_NUM_PAGES; i++) {
|
||||
PageErase(i);
|
||||
delay_cb(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user