1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-21 07:51:46 +02:00

Try to connect to BLE device directly

instead of waiting for the device to become available. Should speed up
connecting to the device.
This commit is contained in:
Erik Johansson
2018-04-08 00:11:48 +02:00
parent c5431dfa2c
commit d5c701b69f

View File

@@ -380,7 +380,7 @@ public abstract class BluetoothCommunication {
if (device.getName().toLowerCase().equals(btDeviceName.toLowerCase())) {
Log.d("BluetoothCommunication", btDeviceName + " found trying to connect...");
bluetoothGatt = device.connectGatt(context, true, gattCallback);
bluetoothGatt = device.connectGatt(context, false, gattCallback);
}
}
}