Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
af23d0bb
Commit
af23d0bb
authored
Apr 15, 2019
by
Bob
Committed by
Me No Dev
Apr 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return empty string instead of "0" (#2673)
parent
582e6433
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libraries/EEPROM/src/EEPROM.cpp
libraries/EEPROM/src/EEPROM.cpp
+2
-2
No files found.
libraries/EEPROM/src/EEPROM.cpp
View file @
af23d0bb
...
...
@@ -286,7 +286,7 @@ size_t EEPROMClass::readString (int address, char* value, size_t maxLen)
String
EEPROMClass
::
readString
(
int
address
)
{
if
(
address
<
0
||
address
>
_size
)
return
String
(
0
);
return
String
();
uint16_t
len
;
for
(
len
=
0
;
len
<=
_size
;
len
++
)
...
...
@@ -294,7 +294,7 @@ String EEPROMClass::readString (int address)
break
;
if
(
address
+
len
>
_size
)
return
String
(
0
);
return
String
();
char
value
[
len
];
memcpy
((
uint8_t
*
)
value
,
_data
+
address
,
len
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment