From 33f5b92a7ae4a7a14ce045087faa228d2f47a542 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Fri, 14 Jun 2024 21:03:56 -0700 Subject: [PATCH] Update parsing script to handle a second color --- parse.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/parse.py b/parse.py index 09393c9..053f46e 100644 --- a/parse.py +++ b/parse.py @@ -141,6 +141,10 @@ class Tag(): if byte != 0: self.warnings.append(f"Data found in block {block}, position {pos} that was expected to be blank (received {byte})") + # Check for a second color + if self.blocks[16][4]: + self.data["filament_color"] += " / #" + bytes_to_hex(self.blocks[16][4:8][::-1]) + def __str__(self, blocks_to_output = IMPORTANT_BLOCKS): result = ""