From 5da7df4e7c8497ea3b0a0a56eacd8b3cf80a83aa Mon Sep 17 00:00:00 2001 From: Dominik Ermel Date: Sat, 9 Mar 2024 22:59:35 +0000 Subject: [PATCH] Bluetooth: Mesh: Switch erase to flash_area_flatten The flash_area_erase has been replaced with flash_area_flatten, allowing code to work with devices that do not provide erase callback. Signed-off-by: Dominik Ermel --- subsys/bluetooth/mesh/blob_io_flash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsys/bluetooth/mesh/blob_io_flash.c b/subsys/bluetooth/mesh/blob_io_flash.c index b82a7d20f7f..31abd117e3c 100644 --- a/subsys/bluetooth/mesh/blob_io_flash.c +++ b/subsys/bluetooth/mesh/blob_io_flash.c @@ -88,8 +88,8 @@ static int block_start(const struct bt_mesh_blob_io *io, erase_size = block->size; #endif - return flash_area_erase(flash->area, flash->offset + block->offset, - erase_size); + return flash_area_flatten(flash->area, flash->offset + block->offset, + erase_size); } static int rd_chunk(const struct bt_mesh_blob_io *io,