fix(nc): Resolving of the event notifier attributes not correct

The generated code for the "node.eventNotifier" attribute is not correct. Changed the code part from logical OR to bitwise OR.
This commit is contained in:
Norbert Greiner 2023-10-23 09:20:42 +02:00 committed by Julius Pfrommer
parent 086b1557d6
commit f75c9ac587

View File

@ -78,12 +78,12 @@ def generateObjectNodeCode(node):
is_first = False
if node.eventNotifier & 4:
if not is_first:
code_part += " || "
code_part += " | "
code_part += "UA_EVENTNOTIFIER_HISTORY_READ"
is_first = False
if node.eventNotifier & 8:
if not is_first:
code_part += " || "
code_part += " | "
code_part += "UA_EVENTNOTIFIER_HISTORY_WRITE"
is_first = False
code_part += ";"