Skip to content

Commit

Permalink
goofed
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackCapCoder committed Feb 28, 2019
1 parent a2545f0 commit 6ff8b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion animus-3/source/animus/ModI2CGuest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void CModI2CGuest::OnReceive(int numBytes)
byte byteA = Wire.read();
byte byteB = Wire.read();
SlaveIndex = 0;
for (short i = (byteA << 8) | byteB; i < MEM_EEPROM_SIZE && Wire.available(); i++)
for (short i = (byteA << 8) | byteB; i < MEM_EEPROM_SIZE; i++)
{
SlaveArray[SlaveIndex] = PersMem.GetEEPROM(i);
SlaveIndex++;
Expand Down

0 comments on commit 6ff8b42

Please sign in to comment.