Always use Write Request for GATT descriptor writes
am: 613f430
* commit '613f43017736580a1625cda3c5a3ed1ea7c79238':
Always use Write Request for GATT descriptor writes
Change-Id: Ibec3a7d44146b678f31a2c898f5be376d2a5e1a1
This commit is contained in:
@@ -422,7 +422,7 @@ public final class BluetoothGatt implements BluetoothProfile {
|
||||
try {
|
||||
mAuthRetry = true;
|
||||
mService.writeDescriptor(mClientIf, address, handle,
|
||||
descriptor.getCharacteristic().getWriteType(),
|
||||
BluetoothGattCharacteristic.WRITE_TYPE_DEFAULT,
|
||||
AUTHENTICATION_MITM, descriptor.getValue());
|
||||
return;
|
||||
} catch (RemoteException e) {
|
||||
@@ -943,7 +943,8 @@ public final class BluetoothGatt implements BluetoothProfile {
|
||||
|
||||
try {
|
||||
mService.writeDescriptor(mClientIf, device.getAddress(), descriptor.getInstanceId(),
|
||||
characteristic.getWriteType(), AUTHENTICATION_NONE, descriptor.getValue());
|
||||
BluetoothGattCharacteristic.WRITE_TYPE_DEFAULT, AUTHENTICATION_NONE,
|
||||
descriptor.getValue());
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG,"",e);
|
||||
mDeviceBusy = false;
|
||||
|
||||
Reference in New Issue
Block a user