mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-26 20:54:22 +01:00
parent
9552cc6ce2
commit
b01eda179a
@ -31,6 +31,7 @@ ARDUINO 1.6.6
|
|||||||
[core]
|
[core]
|
||||||
* AVR: fixed wrong turnOffPWM() for TIMER0B. Thanks @gonzoveliki
|
* AVR: fixed wrong turnOffPWM() for TIMER0B. Thanks @gonzoveliki
|
||||||
* ArduinoISP is now compatible with every architecture (not only AVR) and is much more stable. Thanks @PeterVH
|
* ArduinoISP is now compatible with every architecture (not only AVR) and is much more stable. Thanks @PeterVH
|
||||||
|
* Print not aborting on write() failure. Thanks @stickbreaker
|
||||||
|
|
||||||
ARDUINO 1.6.5-r5 - 2015.08.28
|
ARDUINO 1.6.5-r5 - 2015.08.28
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
Modified 23 November 2006 by David A. Mellis
|
Modified 23 November 2006 by David A. Mellis
|
||||||
|
Modified 03 August 2015 by Chuck Todd
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -34,7 +35,8 @@ size_t Print::write(const uint8_t *buffer, size_t size)
|
|||||||
{
|
{
|
||||||
size_t n = 0;
|
size_t n = 0;
|
||||||
while (size--) {
|
while (size--) {
|
||||||
n += write(*buffer++);
|
if (write(*buffer++)) n++;
|
||||||
|
else break;
|
||||||
}
|
}
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user