From 557c6f97ce6ae5a03709383acf044e7d86856904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Kopy=C5=9Bci=C5=84ski?= Date: Thu, 5 Nov 2020 11:20:16 +0100 Subject: [PATCH] mesh: correct the return type this is port of 2f15e3901a0338e114802885c43ba53207c18653 --- nimble/host/mesh/src/access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/host/mesh/src/access.c b/nimble/host/mesh/src/access.c index a8273b2f0..6fe7659d6 100644 --- a/nimble/host/mesh/src/access.c +++ b/nimble/host/mesh/src/access.c @@ -483,7 +483,7 @@ static bool model_has_dst(struct bt_mesh_model *mod, u16_t dst) if (BT_MESH_ADDR_IS_UNICAST(dst)) { return (dev_comp->elem[mod->elem_idx].addr == dst); } else if (BT_MESH_ADDR_IS_GROUP(dst) || BT_MESH_ADDR_IS_VIRTUAL(dst)) { - return bt_mesh_model_find_group(&mod, dst); + return !!bt_mesh_model_find_group(&mod, dst); } return (mod->elem_idx == 0 && bt_mesh_fixed_group_match(dst));