mirror of
https://github.com/apache/nuttx.git
synced 2026-08-26 20:00:42 +00:00
AT24xx EEPROM Driver: Correct typo from last changeset
This commit is contained in:
parent
a7a405df00
commit
e772c56ef6
1 changed files with 1 additions and 1 deletions
|
|
@ -382,7 +382,7 @@ static ssize_t at24c_bwrite(FAR struct mtd_dev_s *dev, off_t startblock, size_t
|
|||
#else
|
||||
buf[0] = offset & 0xff;
|
||||
|
||||
I2C_SETADDRESS(priv->dev, address | ((offset >> 8) & 0x07), 7);
|
||||
I2C_SETADDRESS(priv->dev, priv->addr | ((offset >> 8) & 0x07), 7);
|
||||
#endif
|
||||
|
||||
while (I2C_WRITE(priv->dev, buf, AT24XX_ADDRSIZE) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue