mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Add RS232 timeout for asynchronous connection (#650)
This commit is contained in:
committed by
Paulchen Panther
parent
6b983c7a57
commit
fe728b1543
@@ -45,6 +45,7 @@ private slots:
|
||||
int rewriteLeds();
|
||||
|
||||
/// Unblock the device after a connection delay
|
||||
void writeTimeout();
|
||||
void unblockAfterDelay();
|
||||
void error(QSerialPort::SerialPortError error);
|
||||
void bytesWritten(qint64 bytes);
|
||||
@@ -84,12 +85,14 @@ protected:
|
||||
/// The RS232 serial-device
|
||||
QSerialPort _rs232Port;
|
||||
|
||||
/// A timeout timer for the asynchronous connection
|
||||
QTimer _writeTimeout;
|
||||
|
||||
bool _blockedForDelay;
|
||||
|
||||
bool _stateChanged;
|
||||
|
||||
qint64 _bytesToWrite;
|
||||
qint64 _bytesWritten;
|
||||
qint64 _frameDropCounter;
|
||||
QSerialPort::SerialPortError _lastError;
|
||||
qint64 _preOpenDelayTimeOut;
|
||||
|
Reference in New Issue
Block a user