Skip to content

Commit 38c5efb

Browse files
committed
fix I2C_EEPROM formatting
1 parent 159bbd2 commit 38c5efb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/I2C_EEPROM/examples/I2C_eeprom_format/I2C_eeprom_format.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ void setup()
5959
if ( ans == 'Y')
6060
{
6161
start = millis();
62-
for (uint32_t i = 0; i < size; i += 128)
62+
for (uint32_t address = 0; address < size; address += 128)
6363
{
64-
if (i % 1024 == 0) Serial.print('.');
65-
ee.setBlock(0, 0xFF, 128);
64+
if (address % 1024 == 0) Serial.print('.');
65+
ee.setBlock(address, 0xFF, 128);
6666
}
6767
diff = millis() - start;
6868
Serial.print("\nTIME: ");

0 commit comments

Comments
 (0)