From b901f9f1516169b266bcd859af21096e382fa640 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 11 Aug 2018 11:28:03 -0700 Subject: [PATCH] Android: recognize OSTC 2N when plugged in Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index d557d0f34..6a5043583 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -1819,7 +1819,11 @@ void QMLManager::showDownloadPage(QString deviceString) .arg(vendorList.indexOf("Heinrichs Weikamp")) .arg(productList["Heinrichs Weikamp"].indexOf("OSTC 3")) .arg(connectionListModel.indexOf("FTDI")); - + } else if (deviceString.contains("HeinrichsWeikamp OSTC 2N")) { + name = QString("%1;%2;%3") + .arg(vendorList.indexOf("Heinrichs Weikamp")) + .arg(productList["Heinrichs Weikamp"].indexOf("OSTC 2N")) + .arg(connectionListModel.indexOf("FTDI")); } else if (deviceString.contains("mManufacturerName=ATOMIC AQUATICS") && deviceString.contains("mProductName=COBALT")) { if (deviceString.contains("mVersion=2")) {