Skip to content

Commit af7ec4e

Browse files
authored
fix EEPROM class example (#3786)
1 parent 9e65ed1 commit af7ec4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: libraries/EEPROM/examples/eeprom_class/eeprom_class.ino

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ EEPROMClass AGE("eeprom2", 0x100);
1717

1818
void setup() {
1919
Serial.begin(115200);
20+
delay(1000);
2021
Serial.println("Testing EEPROMClass\n");
2122
if (!NAMES.begin(NAMES.length())) {
2223
Serial.println("Failed to initialise NAMES");
@@ -43,7 +44,7 @@ void setup() {
4344
uint32_t age = 47;
4445

4546
// Write: Variables ---> EEPROM stores
46-
NAMES.put(0, name);
47+
NAMES.writeString(0, name);
4748
HEIGHT.put(0, height);
4849
AGE.put(0, age);
4950
Serial.print("name: "); Serial.println(name);

0 commit comments

Comments
 (0)