Skip to content

Commit 9681eb9

Browse files
committed
Replace lone Wire.read() with _i2cPort->
1 parent a65613b commit 9681eb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SparkFunSX1509.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ byte SX1509::readByte(byte registerAddress)
735735
_i2cPort->endTransmission();
736736
_i2cPort->requestFrom(deviceAddress, (byte)1);
737737

738-
readValue = Wire.read();
738+
readValue = _i2cPort->read();
739739

740740
return readValue;
741741
}

0 commit comments

Comments
 (0)