Loading android/app/src/com/android/bluetooth/bas/BatteryStateMachine.java +2 −2 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ package com.android.bluetooth.bas; import static android.bluetooth.BluetoothDevice.PHY_LE_1M_MASK; import static android.bluetooth.BluetoothDevice.PHY_LE_2M_MASK; import static android.bluetooth.BluetoothDevice.TRANSPORT_AUTO; import static android.bluetooth.BluetoothDevice.TRANSPORT_LE; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothGatt; Loading Loading @@ -233,7 +233,7 @@ public class BatteryStateMachine extends StateMachine { mBluetoothGatt.close(); } mBluetoothGatt = mDevice.connectGatt(service, /*autoConnect=*/false, mGattCallback, TRANSPORT_AUTO, /*opportunistic=*/true, mGattCallback, TRANSPORT_LE, /*opportunistic=*/true, PHY_LE_1M_MASK | PHY_LE_2M_MASK, getHandler()); return mBluetoothGatt != null; } Loading Loading
android/app/src/com/android/bluetooth/bas/BatteryStateMachine.java +2 −2 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ package com.android.bluetooth.bas; import static android.bluetooth.BluetoothDevice.PHY_LE_1M_MASK; import static android.bluetooth.BluetoothDevice.PHY_LE_2M_MASK; import static android.bluetooth.BluetoothDevice.TRANSPORT_AUTO; import static android.bluetooth.BluetoothDevice.TRANSPORT_LE; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothGatt; Loading Loading @@ -233,7 +233,7 @@ public class BatteryStateMachine extends StateMachine { mBluetoothGatt.close(); } mBluetoothGatt = mDevice.connectGatt(service, /*autoConnect=*/false, mGattCallback, TRANSPORT_AUTO, /*opportunistic=*/true, mGattCallback, TRANSPORT_LE, /*opportunistic=*/true, PHY_LE_1M_MASK | PHY_LE_2M_MASK, getHandler()); return mBluetoothGatt != null; } Loading