Skip to content

Commit 1bc1e8c

Browse files
terryjmyersme-no-dev
authored andcommitted
Update WString.cpp (#1936)
1 parent 2132d9f commit 1bc1e8c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: cores/esp32/WString.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,12 @@ float String::toFloat(void) const
882882
return 0;
883883
}
884884

885+
double String::toDouble(void) const {
886+
if (buffer) {
887+
return atof(buffer);
888+
}
889+
return 0;
890+
}
885891

886892
unsigned char String::equalsConstantTime(const String &s2) const {
887893
// To avoid possible time-based attacks present function

0 commit comments

Comments
 (0)