From e71112ad7176c410f27ed3fd68db22f7654dc9f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Gajda?= Date: Mon, 12 Aug 2019 14:08:25 +0200 Subject: [PATCH] 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.47.3