Skip to content

Commit ccd2f1f

Browse files
authored
Merge pull request #2 from ValdikSS/rbuff-1024
Set Receive buffer to 1024
2 parents d4fe28e + e5825ae commit ccd2f1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

captbackend/UsbBackend/UsbStreambuf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using int_type = UsbStreambuf::int_type;
1010

1111
UsbStreambuf::UsbStreambuf(UsbPrinter& printer, std::size_t buffSize, unsigned timeoutMs)
12-
: printer(printer), rbuff(buffSize), wbuff(buffSize), timeoutMs(timeoutMs) {
12+
: printer(printer), rbuff(1024), wbuff(buffSize), timeoutMs(timeoutMs) {
1313
char_type* wstart = this->wbuff.data();
1414
char_type* wend = wstart + this->wbuff.size() - 1;
1515
this->setp(wstart, wend);

0 commit comments

Comments
 (0)