Fixed to M25P driver from Ken Pettit plus some documentation updates

This commit is contained in:
Gregory Nutt 2013-05-03 17:17:14 -06:00
parent 8757465df2
commit 345c592258
2 changed files with 11 additions and 2 deletions

View File

@ -8,7 +8,7 @@
<tr align="center" bgcolor="#e4e4e4">
<td>
<h1><big><font color="#3c34ec"><i>NuttX RTOS</i></font></big></h1>
<p>Last Updated: April 28, 2013</p>
<p>Last Updated: May 3, 2013</p>
</td>
</tr>
</table>
@ -449,6 +449,15 @@
</li>
</p>
</tr>
<tr>
<td><br></td>
<td>
<p>
<li>
SMART. FLASH file system from Ken Pettit.
</li>
</p>
</tr>
<tr>
<td><br></td>
<td>

View File

@ -704,7 +704,7 @@ static int m25p_erase(FAR struct mtd_dev_s *dev, off_t startblock, size_t nblock
{
/* Do a full sector erase */
m25p_sectorerase(priv, startblock / blkper, M25P_SE);
m25p_sectorerase(priv, startblock, M25P_SE);
startblock += blkper;
blocksleft -= blkper;
continue;