1
0
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:
Erik Johansson
2018-04-08 13:17:28 +02:00
parent c8312907c3
commit 1150bdbfed

View File

@@ -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);
} }
} }
} }