mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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);
|
btVP.productIdx = productList[vendor].indexOf(newDevice);
|
||||||
qDebug() << "adding new btDCs entry (detected DC)" << newDevice << btVP.vendorIdx << btVP.productIdx << btVP.btpdi.address;;
|
qDebug() << "adding new btDCs entry (detected DC)" << newDevice << btVP.vendorIdx << btVP.productIdx << btVP.btpdi.address;;
|
||||||
btDCs << btVP;
|
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 + ")");
|
qDebug() << "Not recognized as dive computer";
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<BTDiscovery::btVendorProduct> BTDiscovery::getBtDcs()
|
QList<BTDiscovery::btVendorProduct> BTDiscovery::getBtDcs()
|
||||||
|
|
Loading…
Add table
Reference in a new issue