Skip to content

Commit b599c4d

Browse files
committed
Update revision log. Made samd/WString.h identical again to avr version.
1 parent 0e89043 commit b599c4d

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

build/shared/revisions.txt

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ARDUINO 1.6.10
77
boards based on Leonardo
88
* sam: added snprintf_P to avr/pgmspace.h stub. Thanks @jantje
99
* avr: Fix TX buffer being overwritten by multiple Wire.write(...) calls in slave mode. Thanks @kellerkindt
10+
* Another small fix to String iterators. Thanks @Ivan-Perez @Chris--A
1011

1112
[libraries]
1213

hardware/arduino/sam/cores/arduino/WString.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ class String
159159
char& operator [] (unsigned int index);
160160
void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index=0) const;
161161
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
162-
{getBytes((unsigned char *)buf, bufsize, index);}
163-
const char * c_str() const { return buffer; }
164-
char* begin() { return buffer; }
165-
char* end() { return buffer + length(); }
166-
const char* begin() const { return c_str(); }
167-
const char* end() const { return c_str() + length(); }
162+
{ getBytes((unsigned char *)buf, bufsize, index); }
163+
const char* c_str() const { return buffer; }
164+
char* begin() { return buffer; }
165+
char* end() { return buffer + length(); }
166+
const char* begin() const { return c_str(); }
167+
const char* end() const { return c_str() + length(); }
168168

169169
// search
170170
int indexOf( char ch ) const;

0 commit comments

Comments
 (0)