Skip to content

Commit

Permalink
ble_mesh: stack: Fix can't trans optional info to group address
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaLWang committed Nov 7, 2022
1 parent 166effd commit f825fcd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions components/bt/esp_ble_mesh/mesh_models/server/server_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,6 @@ int bt_mesh_server_get_optional(struct bt_mesh_model *model,
return -EINVAL;
}

/* Currently we only get optional msg info which dst is set to a unicast address */
if (!BLE_MESH_ADDR_IS_UNICAST(ctx->recv_dst)) {
*trans_time = 0U;
*delay = 0U;
*optional = false;
return 0;
}

/* No optional fields are available */
if (buf->len == 0x00) {
if (model->id == BLE_MESH_MODEL_ID_LIGHT_LC_SRV) {
Expand Down

0 comments on commit f825fcd

Please sign in to comment.