Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions subsys/bluetooth/mesh/access.c
Original file line number Diff line number Diff line change
Expand Up @@ -1830,8 +1830,8 @@ int bt_mesh_model_correspond(const struct bt_mesh_model *corresponding_mod,

MOD_REL_LIST_FOR_EACH(i) {
if (mod_rel_list[i].type < RELATION_TYPE_EXT &&
mod_rel_list[i].type > cor_id) {
cor_id = mod_rel_list[i].type;
mod_rel_list[i].type >= cor_id) {
cor_id = mod_rel_list[i].type + 1;
}

if ((IS_MOD_BASE(base_mod, i, base_offset) ||
Expand Down
4 changes: 2 additions & 2 deletions tests/bsim/bluetooth/mesh/src/test_cdp1.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ static const struct bt_mesh_comp_p1_model_item test_p1_mod2 = {
.cor_present = 1,
.format = 0,
.ext_item_cnt = 1,
.cor_id = 0,
.cor_id = 1,
};

static const struct bt_mesh_comp_p1_model_item test_p1_mod3 = {
Expand All @@ -211,7 +211,7 @@ static const struct bt_mesh_comp_p1_model_item test_p1_mod4 = {
.cor_present = 1,
.format = 0,
.ext_item_cnt = 0,
.cor_id = 0,
.cor_id = 1,
};

static const struct bt_mesh_comp_p1_model_item test_p1_mod5 = {
Expand Down