This fixes opcode check condition when saving configuration for model
subscriptions: use || instead of && for opcode checking
Change-Id: I5d80c0dad98458ceca565b40c824081e6916f02f
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
if (virt)
memcpy(db_sub.addr.label, label, 16);
- if (opcode == OP_CONFIG_MODEL_SUB_VIRT_DELETE &&
+ if (opcode == OP_CONFIG_MODEL_SUB_VIRT_DELETE ||
opcode == OP_CONFIG_MODEL_SUB_DELETE)
return mesh_config_model_sub_del(cfg, ele_addr, id, vendor,
&db_sub);