# HG changeset patch # User Edouard Tisserant # Date 1733310037 -3600 # Node ID 03f007a175b5d15199364bf269d50cf9e3477f1d # Parent 5472b88bbc9d8a1b7cd819fb1064f67721d59b61 IDE: Fix wrong red wire coloring in FBD diff -r 5472b88bbc9d -r 03f007a175b5 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)