mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-22 00:06:48 +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:
@@ -380,7 +380,7 @@ public abstract class BluetoothCommunication {
|
|||||||
if (device.getName().toLowerCase().equals(btDeviceName.toLowerCase())) {
|
if (device.getName().toLowerCase().equals(btDeviceName.toLowerCase())) {
|
||||||
Log.d("BluetoothCommunication", btDeviceName + " found trying to connect...");
|
Log.d("BluetoothCommunication", btDeviceName + " found trying to connect...");
|
||||||
|
|
||||||
bluetoothGatt = device.connectGatt(context, true, gattCallback);
|
bluetoothGatt = device.connectGatt(context, false, gattCallback);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user