SST25 driver: Added one more use of sst25_cmd. From David Sidrane

This commit is contained in:
Gregory Nutt 2013-11-03 07:56:29 -06:00
parent fd7126771f
commit bfdee0f0c7
1 changed files with 1 additions and 8 deletions

View File

@ -561,17 +561,10 @@ static inline int sst25_chiperase(struct sst25_dev_s *priv)
sst25_wren(priv);
/* Select this FLASH part */
SPI_SELECT(priv->dev, SPIDEV_FLASH, true);
/* Send the "Chip Erase (CE)" instruction */
(void)SPI_SEND(priv->dev, SST25_CE);
sst25_cmd(priv, SST25_CE);
/* Deselect the FLASH */
SPI_SELECT(priv->dev, SPIDEV_FLASH, false);
fvdbg("Return: OK\n");
return OK;
}