mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-03-04 17:14:38 -07:00
"fix the bug: json parse error"
This commit is contained in:
parent
2f6e94c94c
commit
721d86167e
1 changed files with 1 additions and 1 deletions
|
|
@ -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', {}))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue