浏览代码

Fix typos (#723)

* fix some typos

* update tools/pyUANamespace/ua_namespace.py
Markus Graube 8 年之前
父节点
当前提交
afc67e6313

+ 4 - 2
tools/pyUANamespace/generate_open62541CCode.py

@@ -44,7 +44,7 @@ parser.add_argument('-i','--ignore',
                     action='append',
                     dest="ignoreFiles",
                     default=[],
-                    help='Loads a list of NodeIDs stored in ignoreFile (one NodeID per line). The compiler will assume that these Nodes have been creathed externally and not generate any code for them. They will however be linked to from other nodes.')
+                    help='Loads a list of NodeIDs stored in ignoreFile (one NodeID per line). The compiler will assume that these nodes have been created externally and not generate any code for them. They will however be linked to from other nodes.')
 parser.add_argument('-b','--blacklist',
                     metavar="<blacklistFile>",
                     type=argparse.FileType('r'),
@@ -149,7 +149,7 @@ ns.allocateVariables()
 
 # Users may have manually defined some nodes in their code already (such as serverStatus).
 # To prevent those nodes from being reprinted, we will simply mark them as already
-# converted to C-Code. That way, they will still be reffered to by other nodes, but
+# converted to C-Code. That way, they will still be referred to by other nodes, but
 # they will not be created themselves.
 ignoreNodes = []
 for ignore in args.ignoreFiles:
@@ -174,3 +174,5 @@ for line in generatedCode[1]:
 
 outfilec.close()
 outfileh.close()
+
+logger.info("Namespace generation code successfully printed")

+ 2 - 2
tools/pyUANamespace/ua_namespace.py

@@ -320,7 +320,7 @@ class opcua_namespace():
         No return value
 
         References that have registered themselves with linkLater() to have
-        their symbolic NodeId targets ("ns=2; i=32") substited for an actual
+        their symbolic NodeId targets ("ns=2;i=32") substituted for an actual
         node will be iterated by this function. For each reference encountered
         in the list of unlinked/open references, the target string will be
         evaluated and searched for in the node list of this namespace. If found,
@@ -680,7 +680,7 @@ class opcua_namespace():
 
       # Now for the actual references...
       for r in n.getReferences():
-        # Only print valid refernces in namespace 0 (users will not want their refs bootstrapped)
+        # Only print valid references in namespace 0 (users will not want their refs bootstrapped)
         if not r.referenceType() in refsUsed and r.referenceType() != None and r.referenceType().id().ns == 0:
           refsUsed.append(r.referenceType())
     logger.debug(str(len(refsUsed)) + " reference types are used in the namespace, which will now get bootstrapped.")

+ 1 - 1
tools/pyUANamespace/ua_node_types.py

@@ -681,7 +681,7 @@ class opcua_node_t:
       # Parent to child reference is added by the server, do not reprint that reference
       if parentRef in unPrintedReferences:
         unPrintedReferences.remove(parentRef)
-      # the UA_Server_addNode function will use addReference which creates a biderectional reference; remove any inverse
+      # the UA_Server_addNode function will use addReference which creates a bidirectional reference; remove any inverse
       # references to our parent to avoid duplicate refs
       for ref in self.getReferences():
         if ref.target() == parentNode and ref.referenceType() == parentRef.referenceType() and ref.isForward() == False: