PLCControler.py
changeset 4063 6668dcbca915
parent 4059 03f007a175b5
--- a/PLCControler.py	Fri Dec 06 12:16:07 2024 +0100
+++ b/PLCControler.py	Sun Dec 08 11:41:31 2024 +0100
@@ -1357,12 +1357,7 @@
         return [x for x, _y in TypeHierarchy_list if not x.startswith("ANY")]
 
     def IsOfType(self, typename, reference, debug=False):
-        if typename is None or reference is None:
-            return True
-        
-        typename = typename.upper()
-        reference = reference.upper()
-        if typename == reference:
+        if reference is None or typename == reference:
             return True
 
         basetype = TypeHierarchy.get(typename)