2019-08-12 12:10:09

by Rafał Gajda

[permalink] [raw]
Subject: [PATCH BlueZ] mesh: Fix model publication get

---
mesh/cfgmod-server.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mesh/cfgmod-server.c b/mesh/cfgmod-server.c
index 4447b1cb1..dbed7e03f 100644
--- a/mesh/cfgmod-server.c
+++ b/mesh/cfgmod-server.c
@@ -93,7 +93,7 @@ static bool config_pub_get(struct mesh_node *node, uint16_t net_idx,
ele_idx = node_get_element_idx(node, ele_addr);

if (ele_idx >= 0)
- pub = mesh_model_pub_get(node, ele_idx, mod_id, &status);
+ pub = mesh_model_pub_get(node, ele_addr, mod_id, &status);
else
status = MESH_STATUS_INVALID_ADDRESS;

--
2.22.0