Skip to content

Commit d6ed4c3

Browse files
committed
Remove unused variables
Fix #29
1 parent c538a0b commit d6ed4c3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/SparkFun_External_EEPROM.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,6 @@ uint16_t ExternalEEPROM::detectPageSizeBytes()
590590
// is used but at the upper end of the address bits (so instead of A2/A1/A0 it's B0/A1/A0).
591591
uint32_t ExternalEEPROM::detectMemorySizeBytes()
592592
{
593-
uint8_t i2cAddress = settings.deviceAddress;
594-
595593
// We do a read-write-read-write to test.
596594
uint32_t testLocation = (128 / 8) - 1; // Start at the last spot of the smallest EEPROM
597595
uint32_t lastGoodLocation = 0;
@@ -623,8 +621,6 @@ uint32_t ExternalEEPROM::detectMemorySizeBytes()
623621
// 4 Check value at next threshold. If it was changed then we know the address we wrote was wrapped.
624622
// 5 Return memory spot to its original value
625623

626-
int loopCount = 1;
627-
628624
while (1)
629625
{
630626
// We must set our memory size to the next size up so that write sets the correct bits

0 commit comments

Comments
 (0)