mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-13 19:27:33 +01:00
For a start, connect with "false" #156
My connection problems went away with this. Let's see how it works out.
This commit is contained in:
parent
d8960c4e16
commit
58cfd0fef9
@ -158,7 +158,7 @@ public final class BtLEQueue {
|
|||||||
BluetoothDevice remoteDevice = mBluetoothAdapter.getRemoteDevice(mGbDevice.getAddress());
|
BluetoothDevice remoteDevice = mBluetoothAdapter.getRemoteDevice(mGbDevice.getAddress());
|
||||||
boolean result;
|
boolean result;
|
||||||
synchronized (mGattMonitor) {
|
synchronized (mGattMonitor) {
|
||||||
mBluetoothGatt = remoteDevice.connectGatt(mContext, true, internalGattCallback);
|
mBluetoothGatt = remoteDevice.connectGatt(mContext, false, internalGattCallback);
|
||||||
result = mBluetoothGatt.connect();
|
result = mBluetoothGatt.connect();
|
||||||
}
|
}
|
||||||
if (result) {
|
if (result) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user