Skip to content

Commit 0b3d4ce

Browse files
committed
1 parent 9681eb9 commit 0b3d4ce

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/SparkFunSX1509.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -801,15 +801,6 @@ bool SX1509::readBytes(byte firstRegisterAddress, byte *destination, byte length
801801

802802
if (result)
803803
{
804-
unsigned int timeout = RECEIVE_TIMEOUT_VALUE * length;
805-
while ((_i2cPort->available() < length) && (timeout-- != 0))
806-
;
807-
808-
if (timeout == 0)
809-
{
810-
return false;
811-
}
812-
813804
for (int i = 0; i < length; i++)
814805
{
815806
destination[i] = _i2cPort->read();

0 commit comments

Comments
 (0)