From 721d86167e5403f65f2a58aa81cc84dfa76a0244 Mon Sep 17 00:00:00 2001 From: abcbca Date: Fri, 7 Feb 2025 23:43:06 +0800 Subject: [PATCH] "fix the bug: json parse error" --- klippy/msgproto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/msgproto.py b/klippy/msgproto.py index f8a12530e..71cb6b594 100644 --- a/klippy/msgproto.py +++ b/klippy/msgproto.py @@ -393,7 +393,7 @@ class MessageParser: def process_identify(self, data, decompress=True): try: if decompress: - data = zlib.decompress(data) + data = zlib.decompress(data).decode('utf-8') self.raw_identify_data = data data = json.loads(data) self.fill_enumerations(data.get('enumerations', {}))