mirror of
https://github.com/apache/nuttx.git
synced 2026-10-09 23:35:47 +00:00
mtd/at25ee.c: Fix write check condition
Fix writing till the very last byte of the memory Signed-off-by: Antoine Juckler <6445757+ajuckler@users.noreply.github.com>
This commit is contained in:
parent
23de88e70e
commit
d996c2e758
1 changed files with 1 additions and 1 deletions
|
|
@ -667,7 +667,7 @@ static ssize_t at25ee_write(FAR struct mtd_dev_s *dev, off_t offset,
|
|||
|
||||
/* Forbid writes past the end of the device */
|
||||
|
||||
if (nbytes + offset >= priv->size)
|
||||
if (nbytes + offset > priv->size)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue