dev/i2c_eeprom.c: Use negative offset when addr>0xff is mangled with dev addr
- Jun 26, 2024
-
-
Frederik Pfautsch (MLE) authored
On some I2C eeproms which require addresses >1B, the remaining bits are mangled together with the i2c device address. Thus the "magic offset_bytes" of -2 is introduced to cover these cases. Signed-off-by:
Frederik Pfautsch <frederik.pfautsch@missinglinkelectronics.com>
c3fc3e07
-