From 95cadfef12c64b37db75acf34411d971d8c36ac5 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Fri, 25 Jan 2013 15:55:35 +0100 Subject: [PATCH] Fixed USBSerial.write() while sending big buffers (Bill Dreschel) --- build/shared/revisions.txt | 1 + hardware/arduino/sam/cores/arduino/USB/USBCore.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/build/shared/revisions.txt b/build/shared/revisions.txt index 9a0b91193..aebe95845 100644 --- a/build/shared/revisions.txt +++ b/build/shared/revisions.txt @@ -21,6 +21,7 @@ ARDUINO 1.5.2 BETA - 2012.01.23 * sam: fixed BSoD on some Windows machine (louismdavis) * sam: added CANRX1/CANTX1 pins 88/89 (same physical pin for 66/53) * sam: fixed analogWrite when used in very thight write loops (V.Dorrich) +* sam: fixed USBSerial.write() while sending big buffers (Bill Dreschel) [libraries] * sam: Added Servo library diff --git a/hardware/arduino/sam/cores/arduino/USB/USBCore.cpp b/hardware/arduino/sam/cores/arduino/USB/USBCore.cpp index e831f417a..38418f10c 100644 --- a/hardware/arduino/sam/cores/arduino/USB/USBCore.cpp +++ b/hardware/arduino/sam/cores/arduino/USB/USBCore.cpp @@ -199,6 +199,7 @@ uint32_t USBD_Send(uint32_t ep, const void* d, uint32_t len) len -= n; UDD_Send(ep & 0xF, data, n); + data += n; } //TXLED1; // light the TX LED //TxLEDPulse = TX_RX_LED_PULSE_MS;