IDE: Fix wrong red wire coloring in FBD
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Wed, 04 Dec 2024 12:00:37 +0100
changeset 4059 03f007a175b5
parent 4058 5472b88bbc9d
child 4060 d2f5eb3c7d6e
IDE: Fix wrong red wire coloring in FBD
PLCControler.py
--- a/PLCControler.py	Tue Dec 03 21:26:52 2024 +0100
+++ b/PLCControler.py	Wed Dec 04 12:00:37 2024 +0100
@@ -1357,7 +1357,12 @@
         return [x for x, _y in TypeHierarchy_list if not x.startswith("ANY")]
 
     def IsOfType(self, typename, reference, debug=False):
-        if reference is None or typename == reference:
+        if typename is None or reference is None:
+            return True
+        
+        typename = typename.upper()
+        reference = reference.upper()
+        if typename == reference:
             return True
 
         basetype = TypeHierarchy.get(typename)