Skip to content
Snippets Groups Projects
Commit a71aa070 authored by lihaichen's avatar lihaichen Committed by Gregory Nutt
Browse files

Merged in lihaichen/nuttx_fix_w25 (pull request #623)


fix w25_cacheflush sector bug.

Approved-by: default avatarGregory Nutt <gnutt@nuttx.org>
parent be5c20cd
No related branches found
No related tags found
No related merge requests found
......@@ -878,7 +878,7 @@ static void w25_cacheflush(struct w25_dev_s *priv)
{
/* Write entire erase block to FLASH */
w25_pagewrite(priv, priv->sector, (off_t)priv->esectno << W25_PAGE_SHIFT,
w25_pagewrite(priv, priv->sector, (off_t)priv->esectno << W25_SECTOR_SHIFT,
W25_SECTOR_SIZE);
/* The case is no long dirty and the FLASH is no longer erased */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment