AP_FlashStorage: Fix test for AP_FLASHSTORAGE_MULTI_WRITE

AP_FLASHSTORAGE_MULTI_WRITE is not defined

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2020-04-16 15:54:49 -03:00 committed by Andrew Tridgell
parent c83ce93165
commit 6672155e24
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ bool FlashTest::flash_write(uint8_t sector, uint32_t offset, const uint8_t *data
b[i], b[i],
data[i]); data[i]);
} }
#if !AP_FLASHSTORAGE_MULTI_WRITE #ifndef AP_FLASHSTORAGE_MULTI_WRITE
if (data16[i] != b16[i] && data16[i] != 0xFFFF && b16[i] != 0xFFFF) { if (data16[i] != b16[i] && data16[i] != 0xFFFF && b16[i] != 0xFFFF) {
AP_HAL::panic("FATAL: invalid write16 at %u:%u 0x%04x 0x%04x\n", AP_HAL::panic("FATAL: invalid write16 at %u:%u 0x%04x 0x%04x\n",
(unsigned)sector, (unsigned)sector,