Skip to content

Commit 2bf9791

Browse files
authored
Merge pull request #3968 from OpenNuvoton/nuvoton_ccli8
[Greentea] Fix test code mbed-os-tests-mbed_hal-flash
2 parents fd5c327 + bcae142 commit 2bf9791

File tree

1 file changed

+1
-0
lines changed
  • TESTS/mbed_hal/flash/functional_tests

1 file changed

+1
-0
lines changed

TESTS/mbed_hal/flash/functional_tests/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ static void erase_range(flash_t *flash, uint32_t addr, uint32_t size)
4949
TEST_ASSERT_NOT_EQUAL(0, sector_size);
5050
int32_t ret = flash_erase_sector(flash, addr);
5151
TEST_ASSERT_EQUAL_INT32(0, ret);
52+
addr += sector_size;
5253
size = size > sector_size ? size - sector_size : 0;
5354
}
5455
}

0 commit comments

Comments
 (0)