mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Don't add all discovered BT devices
This really doesn't help us as we can't associate a vendor/product with devices we don't recognize, so we can't download from them, anyway. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
016b19ef0c
commit
bc864c3bce
1 changed files with 3 additions and 9 deletions
|
@ -163,17 +163,11 @@ void BTDiscovery::btDeviceDiscoveredMain(const btPairedDevice &device)
|
|||
btVP.productIdx = productList[vendor].indexOf(newDevice);
|
||||
qDebug() << "adding new btDCs entry (detected DC)" << newDevice << btVP.vendorIdx << btVP.productIdx << btVP.btpdi.address;;
|
||||
btDCs << btVP;
|
||||
break;
|
||||
productList[QObject::tr("Paired Bluetooth Devices")].append(device.name + " (" + device.address + ")");
|
||||
return;
|
||||
}
|
||||
}
|
||||
productList[QObject::tr("Paired Bluetooth Devices")].append(device.name + " (" + device.address + ")");
|
||||
|
||||
btVP.btpdi = device;
|
||||
btVP.dcDescriptor = newDC;
|
||||
btVP.vendorIdx = vendorList.indexOf(QObject::tr("Paired Bluetooth Devices"));
|
||||
btVP.productIdx = productList[QObject::tr("Paired Bluetooth Devices")].indexOf(device.name);
|
||||
qDebug() << "adding new btDCs entry (all paired)" << newDevice << btVP.vendorIdx << btVP.productIdx << btVP.btpdi.address;
|
||||
btAllDevices << btVP;
|
||||
qDebug() << "Not recognized as dive computer";
|
||||
}
|
||||
|
||||
QList<BTDiscovery::btVendorProduct> BTDiscovery::getBtDcs()
|
||||
|
|
Loading…
Reference in a new issue