mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
BT discovery Android: Allow BT/LE devices connect both ways
For DCs that support both BT and LE, allow the user to connect to both interface layers. Maybe not usefull in the end (as BT is faster than LE), but as long as BT on Android is WIP is it very useful to be able to connect to the interface layer we like. Just add it to the Paired Devices list twice. The normal way, and the LE: prepend way. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
096682cd94
commit
d7b8ad7a44
1 changed files with 5 additions and 0 deletions
|
@ -229,6 +229,11 @@ void BTDiscovery::getBluetoothDevices()
|
|||
result.name = dev.callObjectMethod("getName", "()Ljava/lang/String;").toString();
|
||||
qDebug() << "paired Device type" << btType << "with address" << result.address;
|
||||
btPairedDevices.append(result);
|
||||
if (btType == 3) { // DEVICE_TYPE_DUAL
|
||||
result.address = QString("LE:%1").arg(result.address);
|
||||
qDebug() << "paired Device type" << btType << "with address" << result.address;
|
||||
btPairedDevices.append(result);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue