frudevice: use a single I2C transaction to read from EEPROM with 16-bit
offset
Current code use 2 I2C transactions to read 16-bit EEPROM: the first I2C
transaction to write one bye of the 16-bit offset to EEPROM; the second
I2C transaction to write the other byteof the offset and read data from
EEPROM.
Tested:
Verified this new EEPROM read method reading from 16-bit offset EEPROM
correctly.
Change-Id: I5628de4bd6b2da4d4dfc02f87d1551d7e93062cd
Signed-off-by: Xiang Liu <xiangliu@google.com>
diff --git a/src/Utils.cpp b/src/Utils.cpp
index 4888760..3ef663c 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -360,4 +360,4 @@
{
}
}
-}
\ No newline at end of file
+}