mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
Use magic 'ftdi' as device name on Android
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a568562503
commit
5c4f9986fe
1 changed files with 5 additions and 1 deletions
|
@ -26,7 +26,11 @@ void DownloadThread::run()
|
||||||
auto internalData = m_data->internalData();
|
auto internalData = m_data->internalData();
|
||||||
internalData->descriptor = descriptorLookup[m_data->vendor() + m_data->product()];
|
internalData->descriptor = descriptorLookup[m_data->vendor() + m_data->product()];
|
||||||
internalData->download_table = &downloadTable;
|
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;
|
downloadTable.nr = 0;
|
||||||
qDebug() << "Starting the thread" << downloadTable.nr;
|
qDebug() << "Starting the thread" << downloadTable.nr;
|
||||||
dive_table.preexisting = dive_table.nr;
|
dive_table.preexisting = dive_table.nr;
|
||||||
|
|
Loading…
Reference in a new issue