Преглед изворни кода

ble_mesh: Fix Provisioner failed to publish

lly пре 5 година
родитељ
комит
eeff638c97
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      components/bt/esp_ble_mesh/mesh_core/access.c

+ 3 - 1
components/bt/esp_ble_mesh/mesh_core/access.c

@@ -1032,7 +1032,9 @@ int bt_mesh_model_publish(struct bt_mesh_model *model)
     struct bt_mesh_model_pub *pub = model->pub;
     struct bt_mesh_app_key *key = NULL;
     struct net_buf_simple *sdu = NULL;
-    struct bt_mesh_msg_ctx ctx = {0};
+    struct bt_mesh_msg_ctx ctx = {
+        .model = model,
+    };
     struct bt_mesh_net_tx tx = {
         .sub = NULL,
         .ctx = &ctx,