Merge pull request #8601 from SiliconLabs/dev_9.0
Fix cannot write to characteristic unless read property is set for Silabs's board
This commit is contained in:
commit
0dffd06e7a
|
@ -273,7 +273,8 @@ void common_hal_bleio_characteristic_set_value(bleio_characteristic_obj_t *self,
|
||||||
bufinfo->buf);
|
bufinfo->buf);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (self->props & BT_GATT_CHRC_READ) {
|
if (self->props & BT_GATT_CHRC_READ || self->props & BT_GATT_CHRC_WRITE
|
||||||
|
|| self->props & BT_GATT_CHRC_WRITE_WITHOUT_RESP) {
|
||||||
sc = sl_bt_gatt_server_write_attribute_value(self->handle,
|
sc = sl_bt_gatt_server_write_attribute_value(self->handle,
|
||||||
0,
|
0,
|
||||||
bufinfo->len,
|
bufinfo->len,
|
||||||
|
|
Loading…
Reference in New Issue