--- 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)