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 <dominik.ermel@nordicsemi.no>
This commit is contained in:
parent
0c10b20cc8
commit
5da7df4e7c
1 changed files with 2 additions and 2 deletions
|
@ -88,8 +88,8 @@ static int block_start(const struct bt_mesh_blob_io *io,
|
||||||
erase_size = block->size;
|
erase_size = block->size;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return flash_area_erase(flash->area, flash->offset + block->offset,
|
return flash_area_flatten(flash->area, flash->offset + block->offset,
|
||||||
erase_size);
|
erase_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int rd_chunk(const struct bt_mesh_blob_io *io,
|
static int rd_chunk(const struct bt_mesh_blob_io *io,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue