Skip to content

Commit f613777

Browse files
committed
Correct model number for 24xx1025
1 parent 7911f8f commit f613777

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/SparkFun_External_EEPROM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ void ExternalEEPROM::setMemoryType(uint16_t typeNumber)
232232
case (512):
233233
setMemorySizeBytes(128 * typeNumber); //65536
234234
break;
235-
case (1024):
235+
case (1025):
236236
setMemorySizeBytes(128000); //128000
237237
break;
238238
case (2048):

src/SparkFun_External_EEPROM.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class ExternalEEPROM
135135
uint32_t getMemorySize(); // Depricated
136136
uint32_t length(); // Return size of EEPROM in bytes
137137

138-
void setMemoryType(uint16_t typeNumber); // Valid types: 00, 01, 02, 04, 08, 16, 32, 64, 128, 256, 512, 1024, 2048
138+
void setMemoryType(uint16_t typeNumber); // Valid types: 00, 01, 02, 04, 08, 16, 32, 64, 128, 256, 512, 1025, 2048
139139

140140
uint8_t detectAddressBytes(); // Determine the number of address bytes, 1 or 2
141141
void setAddressBytes(uint8_t addressBytes);

0 commit comments

Comments
 (0)