Skip to content

Commit 81578c5

Browse files
de-nordicrghaddab
authored andcommitted
[nrf fromtree] tests: Bluetooth: Mesh: Use flash_area_flatten for erase
The flash_area_erase is replaced with flash_area_flatten that is also able to erase/scramble devices that do not require explicit call to erase procedure before write. Signed-off-by: Dominik Ermel <[email protected]> (cherry picked from commit 8dc1fce)
1 parent 95c3fb3 commit 81578c5

File tree

1 file changed

+1
-1
lines changed
  • tests/bluetooth/mesh/blob_io_flash/src

1 file changed

+1
-1
lines changed

tests/bluetooth/mesh/blob_io_flash/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ZTEST(blob_io_flash, test_chunk_read)
6868
err = flash_area_open(SLOT1_PARTITION_ID, &fa);
6969
zassert_equal(err, 0, "Preparing test data failed with err=%d", err);
7070

71-
err = flash_area_erase(fa, 0, ARRAY_SIZE(ctrl_data));
71+
err = flash_area_flatten(fa, 0, ARRAY_SIZE(ctrl_data));
7272
zassert_equal(err, 0, "Preparing test data failed with err=%d", err);
7373

7474
err = flash_area_write(fa, 0, test_data, ARRAY_SIZE(ctrl_data));

0 commit comments

Comments
 (0)