From 5e0d937e50291e54bcaa035b74c4425cf0fccaac Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 23 May 2012 17:32:00 +1000 Subject: [PATCH] SITL: fixed build with new ChipErase() call --- libraries/Desktop/support/DataFlash_APM1.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/Desktop/support/DataFlash_APM1.cpp b/libraries/Desktop/support/DataFlash_APM1.cpp index d2e00f09d3..0b264a979d 100644 --- a/libraries/Desktop/support/DataFlash_APM1.cpp +++ b/libraries/Desktop/support/DataFlash_APM1.cpp @@ -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); } }