usbcdc: first think, then commit

This commit is contained in:
schneider 2011-12-11 00:26:11 +01:00
parent ba930408f6
commit 112bc97dc6
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ int CDC_WrInBuf (const char *buffer, int *length)
bytesWritten = bytesToWrite;
// Just block if we can't write all at once
// These ringbuffers smell buggy, so +1
// +1 to prevent an overflow of the ring buffer
while( CDC_BUF_SIZE - CDC_BUF_COUNT(CDC_InBuf) < bytesToWrite+1 );
//uint8_t flush = CDC_DepInEmpty;