File tree 2 files changed +2
-5
lines changed
hardware/arduino/sam/cores/arduino
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ ARDUINO 1.5.6 BETA
11
11
[core]
12
12
* sam: Fixed wrap-around bug in delay() (Mark Tillotson)
13
13
* sam: Fixed regression in analogRead() (fails to read multiple channels) (Mark Tillotson)
14
+ * Optimized Print::print(String&) method, now uses internal string buffer to perform block write
14
15
15
16
ARDUINO 1.5.5 BETA 2013.11.28
16
17
Original file line number Diff line number Diff line change @@ -46,11 +46,7 @@ size_t Print::print(const __FlashStringHelper *ifsh)
46
46
47
47
size_t Print::print (const String &s)
48
48
{
49
- size_t n = 0 ;
50
- for (uint16_t i = 0 ; i < s.length (); i++) {
51
- n += write (s[i]);
52
- }
53
- return n;
49
+ return write (reinterpret_cast <const uint8_t *>(s.c_str ()), s.length ());
54
50
}
55
51
56
52
size_t Print::print (const char str[])
You can’t perform that action at this time.
0 commit comments