mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 02:25:50 +01:00
Remove some commented code
This commit is contained in:
parent
c360eb3392
commit
6e33c7364a
@ -156,11 +156,9 @@ public final class BtLEQueue {
|
|||||||
LOG.info("Attempting to connect to " + mGbDevice.getName());
|
LOG.info("Attempting to connect to " + mGbDevice.getName());
|
||||||
mBluetoothAdapter.cancelDiscovery();
|
mBluetoothAdapter.cancelDiscovery();
|
||||||
BluetoothDevice remoteDevice = mBluetoothAdapter.getRemoteDevice(mGbDevice.getAddress());
|
BluetoothDevice remoteDevice = mBluetoothAdapter.getRemoteDevice(mGbDevice.getAddress());
|
||||||
// boolean result;
|
|
||||||
synchronized (mGattMonitor) {
|
synchronized (mGattMonitor) {
|
||||||
// connectGatt with true doesn't really work ;( too often connection problems
|
// connectGatt with true doesn't really work ;( too often connection problems
|
||||||
mBluetoothGatt = remoteDevice.connectGatt(mContext, false, internalGattCallback);
|
mBluetoothGatt = remoteDevice.connectGatt(mContext, false, internalGattCallback);
|
||||||
// result = mBluetoothGatt.connect();
|
|
||||||
}
|
}
|
||||||
boolean result = mBluetoothGatt != null;
|
boolean result = mBluetoothGatt != null;
|
||||||
if (result) {
|
if (result) {
|
||||||
|
Loading…
Reference in New Issue
Block a user