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 -2
View File
@@ -11,9 +11,9 @@ CANConnection* CanConFactory::create(type pType, QString pPortName)
case SOCKETCAN:
return new SerialBusConnection(pPortName);
case GVRET_SERIAL:
return new GVRetSerial(pPortName);
return new GVRetSerial(pPortName, false);
case REMOTE:
return new GVRetSerial(pPortName); //it's a special case of GVRET connected over TCP/IP so it uses the same class
return new GVRetSerial(pPortName, true); //it's a special case of GVRET connected over TCP/IP so it uses the same class
default: {}
}