diff options
-rw-r--r-- | cores/arduino/WString.cpp | 6 | ||||
-rw-r--r-- | cores/arduino/WString.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cores/arduino/WString.cpp b/cores/arduino/WString.cpp index 998cf22..f2572d6 100644 --- a/cores/arduino/WString.cpp +++ b/cores/arduino/WString.cpp @@ -745,6 +745,6 @@ float String::toFloat(void) const double String::toDouble(void) const { - if (buffer) return atof(buffer); - return 0; -}
\ No newline at end of file + if (buffer) return atof(buffer); + return 0; +} diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h index 08b8147..77709c3 100644 --- a/cores/arduino/WString.h +++ b/cores/arduino/WString.h @@ -190,7 +190,7 @@ public: // parsing/conversion long toInt(void) const; float toFloat(void) const; - double toDouble(void) const; + double toDouble(void) const; protected: char *buffer; // the actual char array |