AT24 EEPROM driver. Fix some an incorrect variable name used in conditional compilation. SourceForge patch #55

This commit is contained in:
Gregory Nutt 2015-05-15 06:15:58 -06:00
parent 9bb4d116d0
commit d43a09275a
1 changed files with 2 additions and 2 deletions

View File

@ -399,7 +399,7 @@ static ssize_t at24c_read(FAR struct mtd_dev_s *dev, off_t offset, size_t nbytes
/* Don't permit reads beyond the end of the memory region */
#ifdef MTDIOC_EXTENDED
#ifdef CONFIG_AT24XX_EXTENDED
if (priv->extended)
{
memsize = CONFIG_AT24XX_EXTSIZE;
@ -420,7 +420,7 @@ static ssize_t at24c_read(FAR struct mtd_dev_s *dev, off_t offset, size_t nbytes
/* Get the I2C address, converting it to the extended I2C if needed */
addr = priv->addr;
#ifdef MTDIOC_EXTENDED
#ifdef CONFIG_AT24XX_EXTENDED
if (priv->extended)
{
addr |= 0x08;