Update canconfactory.cpp

restore network connection was not working because it was detected as serial by this modification it is working
This commit is contained in:
Ahmed Sheimy
2022-08-05 18:32:45 +04:00
committed by GitHub
parent 2afd41b681
commit 1c87008970
+3
View File
@@ -13,6 +13,9 @@ CANConnection* CanConFactory::create(type pType, QString pPortName, QString pDri
case SERIALBUS:
return new SerialBusConnection(pPortName, pDriverName);
case GVRET_SERIAL:
if(pPortName.contains("."))
return new GVRetSerial(pPortName, true);
else
return new GVRetSerial(pPortName, false);
case REMOTE:
return new GVRetSerial(pPortName, true); //it's a special case of GVRET connected over TCP/IP so it uses the same class