We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e072260 commit 11c2618Copy full SHA for 11c2618
qt/writer.cpp
@@ -301,7 +301,7 @@ int Writer::writeData()
301
break;
302
}
303
304
- if (read(pbuf, bufSize))
+ if (read(pbuf, writeDataAckLen))
305
return -1;
306
307
return 0;
qt/writer.h
@@ -16,6 +16,7 @@ class Writer : public QObject
16
Q_OBJECT
17
18
static const uint32_t bufSize = 64;
19
+ static const uint32_t writeDataAckLen = 10;
20
21
SerialPort *serialPort = nullptr;
22
QString portName;
0 commit comments