mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-02-03 05:27:44 +01:00
It's recommended to cancel discovery before connecting
This commit is contained in:
parent
952a383856
commit
c27459b6cc
@ -154,6 +154,7 @@ public final class BtLEQueue {
|
||||
}
|
||||
}
|
||||
LOG.info("Attempting to connect to " + mGbDevice.getName());
|
||||
mBluetoothAdapter.cancelDiscovery();
|
||||
BluetoothDevice remoteDevice = mBluetoothAdapter.getRemoteDevice(mGbDevice.getAddress());
|
||||
boolean result;
|
||||
synchronized (mGattMonitor) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user