mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
bbfdm methods are not working for objects exposed from parent object different to 'Device.'
This commit is contained in:
parent
d45e57afd6
commit
21f4b19cda
1 changed files with 9 additions and 1 deletions
|
|
@ -448,8 +448,16 @@ static void dm_browse_entry(struct dmctx *dmctx, DMNODE *parent_node, DMOBJ *ent
|
||||||
else
|
else
|
||||||
dmasprintf(&(node.current_object), "%s%s.", parent_obj, entryobj->obj);
|
dmasprintf(&(node.current_object), "%s%s.", parent_obj, entryobj->obj);
|
||||||
|
|
||||||
if (DM_STRCMP(parent_obj, ROOT_NODE) == 0) {
|
if (DM_STRCMP(parent_obj, ROOT_NODE) == 0) { // Case1: parent object is 'Device.'
|
||||||
node.current_object_file = entryobj->obj;
|
node.current_object_file = entryobj->obj;
|
||||||
|
} else if (parent_node->parent && DM_STRLEN(parent_node->parent->current_object) == 0) { // Case2: parent object is 'Device.X.X.'
|
||||||
|
size_t count = 0;
|
||||||
|
|
||||||
|
char **parts = strsplit(parent_obj, ".", &count);
|
||||||
|
if (count < 2)
|
||||||
|
return;
|
||||||
|
|
||||||
|
node.current_object_file = parts[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dmctx->checkobj) {
|
if (dmctx->checkobj) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue