Skip to content

Commit 31022da

Browse files
authored
Merge pull request #7 from TylerBird/TylerBird-patch-1
Update SparkFun_External_EEPROM.cpp
2 parents e8c316f + a6b2e0d commit 31022da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SparkFun_External_EEPROM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void ExternalEEPROM::read(uint32_t eepromLocation, uint8_t *buff, uint16_t buffe
136136
while (received < bufferSize)
137137
{
138138
//Limit the amount to write to a page size
139-
int amtToRead = bufferSize - received;
139+
uint16_t amtToRead = bufferSize - received;
140140
if (amtToRead > I2C_BUFFER_LENGTH_RX) //Arduino I2C buffer size limit
141141
amtToRead = I2C_BUFFER_LENGTH_RX;
142142

0 commit comments

Comments
 (0)