File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
hardware/arduino/cores/arduino Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,11 @@ size_t Print::print(const __FlashStringHelper *ifsh)
5353
5454size_t Print::print (const String &s)
5555{
56- write ((const uint8_t *)s.c_str (), s.length ());
57- return s.length ();
56+ size_t n = 0 ;
57+ for (uint16_t i = 0 ; i < s.length (); i++) {
58+ n += write (s[i]);
59+ }
60+ return n;
5861}
5962
6063size_t Print::print (const char str[])
Original file line number Diff line number Diff line change @@ -642,8 +642,4 @@ long String::toInt(void) const
642642 return 0 ;
643643}
644644
645- char * String::c_str () const
646- {
647- return buffer;
648- }
649645
Original file line number Diff line number Diff line change @@ -169,7 +169,6 @@ class String
169169
170170 // parsing/conversion
171171 long toInt (void ) const ;
172- char * c_str () const ;
173172
174173protected:
175174 char *buffer; // the actual char array
You can’t perform that action at this time.
0 commit comments