Skip to content

Commit b9d9d83

Browse files
Arduino's EEPROMM.length() method should return the number of bytes available rather than the number of bytes written.
1 parent a2164a5 commit b9d9d83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/EEPROM/src/EEPROM.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class EEPROMClass {
6666
return put(address, t);
6767
}
6868
size_t length() {
69-
return _size;
69+
return 4096;
7070
}
7171

7272
uint8_t& operator[](int const address) {

0 commit comments

Comments
 (0)