diff options
| author | Cristian Maglie <c.maglie@bug.st> | 2013-03-10 23:03:25 +0100 | 
|---|---|---|
| committer | Cristian Maglie <c.maglie@bug.st> | 2013-03-10 23:03:25 +0100 | 
| commit | 399d9c58a2777aef3b53fb4860cb8bf4252a1598 (patch) | |
| tree | e8a59f2b6f1aa38e28d3b9e94335398cc2305bba /cores/arduino/Print.cpp | |
| parent | cc8291eda8e87f8d8be5868fe51bf3b2c76be398 (diff) | |
Revert "Added function on WString class to export char ptr"
This reverts commit a0c96bebddac27e8ea51811a74d6cdfa2d8a30e0.
Diffstat (limited to 'cores/arduino/Print.cpp')
| -rwxr-xr-x | cores/arduino/Print.cpp | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/cores/arduino/Print.cpp b/cores/arduino/Print.cpp index e087313..53961ec 100755 --- a/cores/arduino/Print.cpp +++ b/cores/arduino/Print.cpp @@ -53,8 +53,11 @@ size_t Print::print(const __FlashStringHelper *ifsh)  size_t Print::print(const String &s)  { -  write((const uint8_t*)s.c_str(), s.length()); -  return s.length(); +  size_t n = 0; +  for (uint16_t i = 0; i < s.length(); i++) { +    n += write(s[i]); +  } +  return n;  }  size_t Print::print(const char str[]) | 
