diff -r 98a76dbb1b6d -r ca814b175391 ProjectController.py --- a/ProjectController.py Fri Oct 28 14:26:17 2022 +0800 +++ b/ProjectController.py Fri Oct 28 14:53:23 2022 +0800 @@ -806,8 +806,8 @@ plc_file.write(POUsIECCodeContent) hasher = hashlib.md5() - hasher.update(IECCodeContent) - hasher.update(POUsIECCodeContent) + hasher.update(IECCodeContent.encode()) + hasher.update(POUsIECCodeContent.encode()) self.IECcodeDigest = hasher.hexdigest() return True