Skip to content

Commit 95cadfe

Browse files
committed
Fixed USBSerial.write() while sending big buffers (Bill Dreschel)
1 parent 24bd974 commit 95cadfe

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

build/shared/revisions.txt

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ARDUINO 1.5.2 BETA - 2012.01.23
2121
* sam: fixed BSoD on some Windows machine (louismdavis)
2222
* sam: added CANRX1/CANTX1 pins 88/89 (same physical pin for 66/53)
2323
* sam: fixed analogWrite when used in very thight write loops (V.Dorrich)
24+
* sam: fixed USBSerial.write() while sending big buffers (Bill Dreschel)
2425

2526
[libraries]
2627
* sam: Added Servo library

hardware/arduino/sam/cores/arduino/USB/USBCore.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ uint32_t USBD_Send(uint32_t ep, const void* d, uint32_t len)
199199
len -= n;
200200

201201
UDD_Send(ep & 0xF, data, n);
202+
data += n;
202203
}
203204
//TXLED1; // light the TX LED
204205
//TxLEDPulse = TX_RX_LED_PULSE_MS;

0 commit comments

Comments
 (0)