summaryrefslogtreecommitdiffstats
path: root/core/downloadfromdcthread.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-29 15:05:46 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-29 15:05:46 -0700
commit5c4f9986fe6f830fef37379bae35599a5427b9c0 (patch)
treedf6c6856898d05df2e79d4f265a0cf74244c2f4d /core/downloadfromdcthread.cpp
parenta5685625035307e644a5454488f1818ac61dea2d (diff)
downloadsubsurface-5c4f9986fe6f830fef37379bae35599a5427b9c0.tar.gz
Use magic 'ftdi' as device name on Android
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/downloadfromdcthread.cpp')
-rw-r--r--core/downloadfromdcthread.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/downloadfromdcthread.cpp b/core/downloadfromdcthread.cpp
index 36829ad1b..08d8826ab 100644
--- a/core/downloadfromdcthread.cpp
+++ b/core/downloadfromdcthread.cpp
@@ -26,7 +26,11 @@ void DownloadThread::run()
auto internalData = m_data->internalData();
internalData->descriptor = descriptorLookup[m_data->vendor() + m_data->product()];
internalData->download_table = &downloadTable;
-
+#if defined(Q_OS_ANDROID)
+ // on Android we either use BT or we download via FTDI cable
+ internalData->devname = "ftdi";
+#endif
+ qDebug() << "Starting download from " << (internalData->bluetooth_mode ? "BT" : internalData->devname);
downloadTable.nr = 0;
qDebug() << "Starting the thread" << downloadTable.nr;
dive_table.preexisting = dive_table.nr;