mirror of
https://github.com/RobTillaart/I2C_EEPROM.git
synced 2026-07-27 20:06:07 +00:00
fix
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ uint16_t I2C_eeprom::partition(uint16_t offset, uint16_t size)
|
||||
// verify partition is within EEPROM
|
||||
uint32_t tmp = offset;
|
||||
tmp += size;
|
||||
if (tmp >= deviceSize)
|
||||
if (tmp >= _deviceSize)
|
||||
{
|
||||
return 0; // ?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user