net: lwm2m: Fix minor bug with setting flags
Looks like we are setting some bit flags so we should use '|' not '||' Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
e7107ba562
commit
0033448f10
1 changed files with 1 additions and 1 deletions
|
@ -417,7 +417,7 @@ static int engine_add_observer(struct lwm2m_message *msg,
|
||||||
struct lwm2m_engine_obj_inst *obj_inst = NULL;
|
struct lwm2m_engine_obj_inst *obj_inst = NULL;
|
||||||
struct observe_node *obs;
|
struct observe_node *obs;
|
||||||
struct notification_attrs attrs = {
|
struct notification_attrs attrs = {
|
||||||
.flags = BIT(LWM2M_ATTR_PMIN) || BIT(LWM2M_ATTR_PMAX),
|
.flags = BIT(LWM2M_ATTR_PMIN) | BIT(LWM2M_ATTR_PMAX),
|
||||||
.pmin = DEFAULT_SERVER_PMIN,
|
.pmin = DEFAULT_SERVER_PMIN,
|
||||||
.pmax = DEFAULT_SERVER_PMAX,
|
.pmax = DEFAULT_SERVER_PMAX,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue