summaryrefslogtreecommitdiffstats
path: root/src/plugins/canbus/systeccan/systeccanbackend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/canbus/systeccan/systeccanbackend.cpp')
-rw-r--r--src/plugins/canbus/systeccan/systeccanbackend.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/canbus/systeccan/systeccanbackend.cpp b/src/plugins/canbus/systeccan/systeccanbackend.cpp
index a1db866..996122d 100644
--- a/src/plugins/canbus/systeccan/systeccanbackend.cpp
+++ b/src/plugins/canbus/systeccan/systeccanbackend.cpp
@@ -67,13 +67,14 @@ static void DRV_CALLBACK_TYPE ucanEnumCallback(DWORD index, BOOL isUsed,
{
auto result = static_cast<QStringList *>(args);
+ Q_UNUSED(index);
Q_UNUSED(isUsed);
- Q_UNUSED(hardwareInfo);
- Q_UNUSED(initInfo);
- result->append(QString::fromLatin1("can%1.0").arg(index));
+ result->append(QString::fromLatin1("can%1.0").arg(hardwareInfo->m_bDeviceNr));
if (USBCAN_CHECK_SUPPORT_TWO_CHANNEL(hardwareInfo))
- result->append(QString::fromLatin1("can%1.1").arg(index));
+ result->append(QString::fromLatin1("can%1.1").arg(hardwareInfo->m_bDeviceNr));
+
+ initInfo->m_fTryNext = true; // continue enumerating with next device
}
QList<QCanBusDeviceInfo> SystecCanBackend::interfaces()