Skip to content

Commit 8560231

Browse files
committed
Could have sworn I changed the return when I made the label
1 parent 1d2b78d commit 8560231

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

libraries/EEPROM/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name=EEPROM
22
version=1.0.3
33
author=Ivan Grokhotkov
44
maintainer=Paolo Becchi <[email protected]>
5-
sentence=Enables reading and writing data to the permanent FLASH storage, up to 4kb.
5+
sentence=Enables reading and writing data a sequential, addressable FLASH storage
66
paragraph=
77
category=Data Storage
88
url=http://arduino.cc/en/Reference/EEPROM

libraries/EEPROM/src/EEPROM.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,8 @@ uint16_t EEPROMClass::convert (bool clear, const char* EEPROMname, const char* n
228228
return result;
229229
}
230230

231-
size_t size;
232-
size = mypart->size;
233-
uint8_t* data;
234-
data = (uint8_t*) malloc(size);
231+
size_t size = mypart->size;
232+
uint8_t* data = (uint8_t*) malloc(size);
235233
if (!data) {
236234
log_e("Not enough memory to convert EEPROM!");
237235
goto exit;
@@ -274,7 +272,7 @@ uint16_t EEPROMClass::convert (bool clear, const char* EEPROMname, const char* n
274272
}
275273
exit:
276274
free(data);
277-
return size;
275+
return result;
278276
}
279277

280278
/*

0 commit comments

Comments
 (0)