Skip to content

Commit a0eade3

Browse files
Fix sending buffered data
This fixes support for queuing data (and not sending it off directly) if e.g. the USB connection is disconnected and then reconnected.
1 parent 684c36a commit a0eade3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

digistump-avr/libraries/DigisparkCDC/DigiCDC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void DigiCDCDevice::usbBegin()
151151
void DigiCDCDevice::usbPollWrapper()
152152
{
153153
usbPoll();
154-
while((!(RingBuffer_IsEmpty(&txBuf)))&&(index<9))
154+
while((!(RingBuffer_IsEmpty(&txBuf)))&&(index<8))
155155
{
156156
tmp[index++] = RingBuffer_Remove(&txBuf);
157157
}

0 commit comments

Comments
 (0)