kopia lustrzana https://gitlab.com/eliggett/wfview
More linux fixes
rodzic
4286504d48
commit
229a2bc32f
|
@ -156,16 +156,18 @@ void pttyHandler::sendDataOut(const QByteArray& writeData)
|
|||
|
||||
qint64 bytesWritten;
|
||||
|
||||
if (inPortData[2] != (char)0xE1) {
|
||||
bytesWritten = port->write(writeData);
|
||||
|
||||
}
|
||||
if (bytesWritten != writeData.length()) {
|
||||
qDebug(logSerial()) << "bytesWritten: " << bytesWritten << " length of byte array: " << writeData.length()\
|
||||
<< " size of byte array: " << writeData.size()\
|
||||
<< " Wrote all bytes? " << (bool)(bytesWritten == (qint64)writeData.size());
|
||||
}
|
||||
#else
|
||||
if (inPortData[2] != (char)0xE1) {
|
||||
port->write(writeData);
|
||||
|
||||
}
|
||||
#endif
|
||||
mutex.unlock();
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue