Skip to content

Commit

Permalink
Fix name of OPC UA aliases, pt 2
Browse files Browse the repository at this point in the history
Put the name of the alias, also for booleans
  • Loading branch information
jensdo committed Apr 15, 2016
1 parent 222a847 commit 9b56b3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SimulationRuntime/opc/ua/omc_opc_ua.c
Expand Up @@ -409,8 +409,8 @@ static inline omc_opc_ua_state* addAliasVars(omc_opc_ua_state *state, var_kind_t
continue; /* Because we did not add discrete reals, etc. yet */
}
inputIndex = booleanVarsData[index].info.inputIndex;
nameStr = (char*) booleanVarsData[index].info.name;
commentStr = (char*) booleanVarsData[index].info.comment;
nameStr = (char*) aliases[i].info.name;
commentStr = (char*) aliases[i].info.comment;
dataSource = (UA_DataSource) {.handle = state, .read = readBoolean, .write = inputIndex >= 0 ? writeBoolean : NULL};
break;
}
Expand Down

0 comments on commit 9b56b3c

Please sign in to comment.