Просмотр исходного кода

ble_mesh: stack: Fix can't trans optional info to group address

wangjialiang 3 лет назад
Родитель
Сommit
7e0b57f9ef
1 измененных файлов с 0 добавлено и 8 удалено
  1. 0 8
      components/bt/esp_ble_mesh/mesh_models/server/server_common.c

+ 0 - 8
components/bt/esp_ble_mesh/mesh_models/server/server_common.c

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