Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 968e1ba

Browse files
committedJun 6, 2019
Set result on success
1 parent eb3d82e commit 968e1ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎libraries/EEPROM/src/EEPROM.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ uint16_t EEPROMClass::convert (bool clear, const char* EEPROMname, const char* n
264264
log_e("Unable to add EEPROM data to NVS: %s", esp_err_to_name(err));
265265
goto exit;
266266
}
267-
267+
result = size;
268+
268269
if (clear) {
269270
if (esp_partition_erase_range (mypart, 0, size) != ESP_OK) {
270271
log_w("Unable to clear EEPROM partition");

0 commit comments

Comments
 (0)
Please sign in to comment.