File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -468,6 +468,23 @@ bossac.exe -d --port=COM5 -U true -i -e -w -v Blink_Demo_ATSAMD21E18A.bin -R
468468
469469## ChangeLog
470470
471+ * 1.6.6-mt1:
472+
473+ * Merged in changes from upstream SAMD CORE 1.6.3
474+ * Added SPI.transfer16(..) method
475+ * Bugfix: added missing Serial.begin(baud, config) method. Thanks @tuxedo0801
476+
477+ * Merged in changes from upstream SAMD CORE 1.6.2 2015.11.03
478+ * Fixed bug in delay calculations
479+ * Fixed deadlock conditions in Wire. Thanks Erin Tomson
480+ * Print not aborting on write() failure. Thanks @stickbreaker
481+ * SPI can now be configured in variants. Thanks @aethaniel
482+ * Implemented Wire.end
483+ * Implemented Wire.setClock. Thanks @PaoloP74
484+ * Wire: allow scanning bus via beginTransmission-endTransmission
485+ * USB Device: big refactoring and bug fix
486+ * USB Device: added PluggableUSB interface
487+
471488* 1.6.5-mt2:
472489 * See 'What's New' above.
473490
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ size_t Print::write(const uint8_t *buffer, size_t size)
3131{
3232 size_t n = 0 ;
3333 while (size--) {
34- n += write (*buffer++);
34+ if (write (*buffer++)) n++;
35+ else break ;
3536 }
3637 return n;
3738}
@@ -112,9 +113,7 @@ size_t Print::print(const Printable& x)
112113
113114size_t Print::println (void )
114115{
115- size_t n = print (' \r ' );
116- n += print (' \n ' );
117- return n;
116+ return write (" \r\n " );
118117}
119118
120119size_t Print::println (const String &s)
You can’t perform that action at this time.
0 commit comments