Update parsing script to handle a second color

This commit is contained in:
Queen Vinyl Da.i'gyu-Kazotetsu committed 2024-08-05 18:30:31 -07:00
1 parent 4d8dc1e116
commit 33f5b92a7a
1 file changed
+4
+4
View File
@@ -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 = ""