Skip to content

Commit

Permalink
core: fix bug in setting ATTR_CLONED
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Klotzbuecher <mk@mkio.de>
  • Loading branch information
kmarkus committed Jun 10, 2020
1 parent 223103d commit 2a900cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libubx/ubx.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ int ubx_block_register(ubx_node_info_t *ni, struct ubx_proto_block *prot)
ret = ubx_port_add(newb,
p->name,
p->doc,
p->attrs & PORT_ATTR_CLONED,
p->attrs | PORT_ATTR_CLONED,
p->in_type_name,
p->in_data_len,
p->out_type_name,
Expand All @@ -511,7 +511,7 @@ int ubx_block_register(ubx_node_info_t *ni, struct ubx_proto_block *prot)
c->type_name,
c->min,
c->max,
c->attrs & CONFIG_ATTR_CLONED);
c->attrs | CONFIG_ATTR_CLONED);
if (ret)
goto out_err;
}
Expand Down Expand Up @@ -1033,7 +1033,7 @@ static ubx_block_t *ubx_block_clone(ubx_block_t *prot, const char *name)
csrc->type,
csrc->min,
csrc->max,
csrc->attrs & CONFIG_ATTR_CLONED);
csrc->attrs | CONFIG_ATTR_CLONED);
if (ret != 0)
goto out_free;
}
Expand All @@ -1042,7 +1042,7 @@ static ubx_block_t *ubx_block_clone(ubx_block_t *prot, const char *name)
ret = __ubx_port_add(newb,
psrc->name,
NULL,
psrc->attrs & PORT_ATTR_CLONED,
psrc->attrs | PORT_ATTR_CLONED,
psrc->in_type,
psrc->in_data_len,
psrc->out_type,
Expand Down

0 comments on commit 2a900cd

Please sign in to comment.