diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/flash.c b/test/flash.c index ab0cf29aa7..b3bad5e984 100644 --- a/test/flash.c +++ b/test/flash.c @@ -313,7 +313,7 @@ static int test_overwrite_other(void) uint32_t offset, size; /* Test that we can overwrite the other image */ - if (system_get_image_copy() == SYSTEM_IMAGE_RW) { + if (system_is_in_rw()) { offset = CONFIG_RO_STORAGE_OFF; size = CONFIG_RO_SIZE; } else { |