Fix Serial Ports with dots

Added bool passed to GVRETSerial to indicate when to use TCP,
rather than infering from port name.
This commit is contained in:
Jackson Smith
2018-06-14 22:17:56 -04:00
parent 8934842133
commit 22e1fe64d7
3 changed files with 10 additions and 5 deletions
+2 -1
View File
@@ -42,7 +42,7 @@ class GVRetSerial : public CANConnection
Q_OBJECT
public:
GVRetSerial(QString portName);
GVRetSerial(QString portName, bool useTcp);
virtual ~GVRetSerial();
protected:
@@ -82,6 +82,7 @@ protected:
bool gotValidated;
bool isAutoRestart;
bool continuousTimeSync;
bool useTcp;
QSerialPort *serial;
QTcpSocket *tcpClient;
int framesRapid;