Bug 1161939 - Correct bitwise checking on GATT characteristic write properties. r=jocelyn

This commit is contained in:
Bruce Sun 2015-05-06 18:15:30 +08:00
parent 7914d789da
commit 3ce88763fd

View File

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