Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart committed Oct 26, 2024
1 parent 26c021f commit 1d8ef06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion I2C_eeprom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ bool I2C_eeprom::updateByteVerify(const uint16_t memoryAddress, const uint8_t va
// return false if write or verify failed.
bool I2C_eeprom::updateBlockVerify(const uint16_t memoryAddress, const uint8_t * buffer, const uint16_t length)
{
updateBlock(memoryAddress, buffer, length);
// zero bytes written means nothing needs to be verified
if (0 == updateBlock(memoryAddress, buffer, length)) return true;
return verifyBlock(memoryAddress, buffer, length);
}

Expand Down

0 comments on commit 1d8ef06

Please sign in to comment.