[Greentea] Fix test code mbed-os-tests-mbed_hal-flash

pull/3968/head
ccli8 2017-03-20 15:06:06 +08:00
parent cc58a7fb0c
commit bcae1429e5
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ static void erase_range(flash_t *flash, uint32_t addr, uint32_t size)
TEST_ASSERT_NOT_EQUAL(0, sector_size);
int32_t ret = flash_erase_sector(flash, addr);
TEST_ASSERT_EQUAL_INT32(0, ret);
addr += sector_size;
size = size > sector_size ? size - sector_size : 0;
}
}