mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
Attempt to re-enable automatic reconnect (autosensing) #249
(now that initializing device works again)
This commit is contained in:
parent
59c3970008
commit
3e3cf462a6
@ -158,7 +158,7 @@ public final class BtLEQueue {
|
|||||||
mBluetoothAdapter.cancelDiscovery();
|
mBluetoothAdapter.cancelDiscovery();
|
||||||
BluetoothDevice remoteDevice = mBluetoothAdapter.getRemoteDevice(mGbDevice.getAddress());
|
BluetoothDevice remoteDevice = mBluetoothAdapter.getRemoteDevice(mGbDevice.getAddress());
|
||||||
synchronized (mGattMonitor) {
|
synchronized (mGattMonitor) {
|
||||||
mBluetoothGatt = remoteDevice.connectGatt(mContext, false, internalGattCallback);
|
mBluetoothGatt = remoteDevice.connectGatt(mContext, true, internalGattCallback);
|
||||||
// result = mBluetoothGatt.connect();
|
// result = mBluetoothGatt.connect();
|
||||||
}
|
}
|
||||||
boolean result = mBluetoothGatt != null;
|
boolean result = mBluetoothGatt != null;
|
||||||
|
Loading…
Reference in New Issue
Block a user