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,