mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
AT24 EEPROM driver. Fix some an incorrect variable name used in conditional compilation. SourceForge patch #55
This commit is contained in:
@@ -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 */
|
/* Don't permit reads beyond the end of the memory region */
|
||||||
|
|
||||||
#ifdef MTDIOC_EXTENDED
|
#ifdef CONFIG_AT24XX_EXTENDED
|
||||||
if (priv->extended)
|
if (priv->extended)
|
||||||
{
|
{
|
||||||
memsize = CONFIG_AT24XX_EXTSIZE;
|
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 */
|
/* Get the I2C address, converting it to the extended I2C if needed */
|
||||||
|
|
||||||
addr = priv->addr;
|
addr = priv->addr;
|
||||||
#ifdef MTDIOC_EXTENDED
|
#ifdef CONFIG_AT24XX_EXTENDED
|
||||||
if (priv->extended)
|
if (priv->extended)
|
||||||
{
|
{
|
||||||
addr |= 0x08;
|
addr |= 0x08;
|
||||||
|
|||||||
Reference in New Issue
Block a user