mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-21 16:02:04 +02:00
Revert "Try to connect to BLE device directly"
Will have to rethink this. Perhaps try to connect to device directly
first, and if that fails fall back to autoconnect.
This reverts commit d5c701b69f
.
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, false, gattCallback);
|
bluetoothGatt = device.connectGatt(context, true, gattCallback);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user