summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-11 11:28:03 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-11 11:28:32 -0700
commitb901f9f1516169b266bcd859af21096e382fa640 (patch)
treee4d05f7a14f4ff99f94b01fbe049979080c2532f /mobile-widgets
parent9c65e35fa4c0e545dc4a6be295fab32ba475d932 (diff)
downloadsubsurface-b901f9f1516169b266bcd859af21096e382fa640.tar.gz
Android: recognize OSTC 2N when plugged in
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qmlmanager.cpp6
1 files changed, 5 insertions, 1 deletions
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")) {