mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 1161939 - Correct bitwise checking on GATT characteristic write properties. r=jocelyn
This commit is contained in:
parent
7914d789da
commit
3ce88763fd
@ -300,8 +300,8 @@ BluetoothGattCharacteristic::WriteValue(const ArrayBuffer& aValue,
|
||||
NS_ENSURE_TRUE(!aRv.Failed(), nullptr);
|
||||
|
||||
BT_ENSURE_TRUE_REJECT(mProperties &
|
||||
(GATT_CHAR_PROP_BIT_WRITE_NO_RESPONSE ||
|
||||
GATT_CHAR_PROP_BIT_WRITE ||
|
||||
(GATT_CHAR_PROP_BIT_WRITE_NO_RESPONSE |
|
||||
GATT_CHAR_PROP_BIT_WRITE |
|
||||
GATT_CHAR_PROP_BIT_SIGNED_WRITE),
|
||||
promise,
|
||||
NS_ERROR_NOT_AVAILABLE);
|
||||
|
Loading…
Reference in New Issue
Block a user