nuttx: solve referenciation error in memset call
Signed-off-by: Andres Sanchez <tito97_sp@hotmail.com>
This commit is contained in:
parent
b408b43a9f
commit
9eff1e08bd
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue