zephyr: fix flash_area_read_is_empty
Implementation of flash_area_read_is_empty introduced recently uses deprecated hal_flash_read API which caused build failure. This patch uses zephyr's native flash_area_read() API which solves the bug. Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
This commit is contained in:
parent
178be54bd6
commit
5f81b127e1
|
@ -83,7 +83,7 @@ int flash_area_read_is_empty(const struct flash_area *fa, uint32_t off,
|
|||
uint8_t *u8dst;
|
||||
int rc;
|
||||
|
||||
rc = hal_flash_read(fa->fa_device_id, fa->fa_off + off, dst, len);
|
||||
rc = flash_area_read(fa, off, dst, len);
|
||||
if (rc) {
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue