1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-10-16 10:30:59 +02:00

Remove some commented code

This commit is contained in:
cpfeiffer 2016-05-26 22:21:58 +02:00
parent c360eb3392
commit 6e33c7364a

View File

@ -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) {