nuttx: solve referenciation error in memset call

Signed-off-by: Andres Sanchez <tito97_sp@hotmail.com>
This commit is contained in:
Andres Sanchez 2021-11-14 22:18:52 +01:00 committed by Fabio Utzig
parent b408b43a9f
commit 9eff1e08bd
1 changed files with 1 additions and 1 deletions

View File

@ -552,7 +552,7 @@ int flash_area_erase(const struct flash_area *fa, uint32_t off, uint32_t len)
return ERROR;
}
memset(buffer, erase_val, sizeof(buffer));
memset(buffer, erase_val, sector_size);
i = 0;