mirror of
https://github.com/open62541/open62541.git
synced 2025-06-03 04:00:21 +00:00
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:
parent
086b1557d6
commit
f75c9ac587
@ -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 += ";"
|
||||
|
Loading…
Reference in New Issue
Block a user