mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
DataFlash: The current method for checking if chip erase worked is producing false positives. We are forcing the block erase until we have a deterministic test method.
This commit is contained in:
parent
f019d41729
commit
6d3fdfc03a
@ -201,7 +201,10 @@ void DataFlash_Class::EraseAll(void (*delay_cb)(unsigned long))
|
|||||||
StartRead(df_NumPages+1);
|
StartRead(df_NumPages+1);
|
||||||
int32_t format = ReadLong();
|
int32_t format = ReadLong();
|
||||||
|
|
||||||
if (format == DF_LOGGING_FORMAT_INVALID) {
|
// if (format == DF_LOGGING_FORMAT_INVALID)
|
||||||
|
// the current method for checking if chip erase worked is producing false positives
|
||||||
|
// we are forcing the block erase until we have a deterministic test method
|
||||||
|
{
|
||||||
// the chip erase didn't work - fall back to a erasing
|
// the chip erase didn't work - fall back to a erasing
|
||||||
// each page separately. The errata on the APM2 dataflash chip
|
// each page separately. The errata on the APM2 dataflash chip
|
||||||
// suggests that chip erase won't always work
|
// suggests that chip erase won't always work
|
||||||
|
Loading…
Reference in New Issue
Block a user