mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: save BT address as string
And do the same LE: prefix marking as in the desktop version. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6837120bb1
commit
c145cbd754
3 changed files with 7 additions and 7 deletions
|
|
@ -331,7 +331,7 @@ QString DCDeviceData::getDetectedDeviceAddress(const QString ¤tVendorText,
|
|||
// detected as a possible real dive computer (and not some other paired
|
||||
// BT device
|
||||
if (currentVendorText != QObject::tr("Paired Bluetooth Devices") && !btDCs.isEmpty()) {
|
||||
QString btAddr = btDCs.first().btpdi.address.toString();
|
||||
QString btAddr = btDCs.first().btpdi.address;
|
||||
qDebug() << "getDetectedDeviceAddress" << btAddr;
|
||||
return btAddr;
|
||||
}
|
||||
|
|
@ -340,7 +340,7 @@ QString DCDeviceData::getDetectedDeviceAddress(const QString ¤tVendorText,
|
|||
// unsure being a dive computer
|
||||
if (currentVendorText == QObject::tr("Paired Bluetooth Devices")) {
|
||||
int i = productList[currentVendorText].indexOf(currentProductText);
|
||||
QString btAddr = btAllDevices[i].btpdi.address.toString();
|
||||
QString btAddr = btAllDevices[i].btpdi.address;
|
||||
qDebug() << "getDetectedDeviceAddress" << btAddr;
|
||||
return btAddr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue