From 1c8700897016e740241cb26a930b37e2b0773f9a Mon Sep 17 00:00:00 2001 From: Ahmed Sheimy Date: Fri, 5 Aug 2022 18:32:45 +0400 Subject: [PATCH] Update canconfactory.cpp restore network connection was not working because it was detected as serial by this modification it is working --- connections/canconfactory.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/connections/canconfactory.cpp b/connections/canconfactory.cpp index 1fc461c..0adb9b8 100644 --- a/connections/canconfactory.cpp +++ b/connections/canconfactory.cpp @@ -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