From f75c9ac5873d1b881f1ce193c6d8ba5f2170710d Mon Sep 17 00:00:00 2001 From: Norbert Greiner Date: Mon, 23 Oct 2023 09:20:42 +0200 Subject: [PATCH] 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. --- tools/nodeset_compiler/backend_open62541_nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/nodeset_compiler/backend_open62541_nodes.py b/tools/nodeset_compiler/backend_open62541_nodes.py index 7042261d03f..3c252a17d6e 100644 --- a/tools/nodeset_compiler/backend_open62541_nodes.py +++ b/tools/nodeset_compiler/backend_open62541_nodes.py @@ -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 += ";"