S24FL1: Fix an error in the page write logic

This commit is contained in:
Gregory Nutt 2015-11-10 12:48:29 -06:00
parent 965addb397
commit eb1191df63
2 changed files with 3 additions and 2 deletions

2
arch

@ -1 +1 @@
Subproject commit a91eb08c8abc2cbcd3b72732dbc2ac0dfa2f2f61
Subproject commit fb42257296843a19a50cbca004324f1c88a00b8f

View File

@ -966,6 +966,8 @@ static int s25fl1_write_page(struct s25fl1_dev_s *priv, FAR const uint8_t *buffe
s25fl1_write_enable(priv);
ret = QSPI_MEMORY(priv->qspi, &meminfo);
s25fl1_write_disable(priv);
if (ret < 0)
{
fdbg("ERROR: QSPI_MEMORY failed writing address=%06x\n",
@ -985,7 +987,6 @@ static int s25fl1_write_page(struct s25fl1_dev_s *priv, FAR const uint8_t *buffe
*/
DEBUGASSERT(buflen == 0);
s25fl1_write_disable(priv);
return OK;
}