mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +02:00
ble_mesh: correct the return type [Zephyr]
This commit is contained in:
@@ -741,7 +741,7 @@ static bool model_has_dst(struct bt_mesh_model *model, u16_t dst)
|
|||||||
if (BLE_MESH_ADDR_IS_UNICAST(dst)) {
|
if (BLE_MESH_ADDR_IS_UNICAST(dst)) {
|
||||||
return (dev_comp->elem[model->elem_idx].addr == dst);
|
return (dev_comp->elem[model->elem_idx].addr == dst);
|
||||||
} else if (BLE_MESH_ADDR_IS_GROUP(dst) || BLE_MESH_ADDR_IS_VIRTUAL(dst)) {
|
} else if (BLE_MESH_ADDR_IS_GROUP(dst) || BLE_MESH_ADDR_IS_VIRTUAL(dst)) {
|
||||||
return bt_mesh_model_find_group(model, dst);
|
return !!bt_mesh_model_find_group(model, dst);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (model->elem_idx == 0 && bt_mesh_fixed_group_match(dst));
|
return (model->elem_idx == 0 && bt_mesh_fixed_group_match(dst));
|
||||||
|
Reference in New Issue
Block a user