Update parsing script to handle a second color
This commit is contained in:
1 parent
4d8dc1e116
commit
33f5b92a7a
1 file changed
+4
@@ -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 = ""
|
||||
|
||||
|
||||
Reference in new issue
Block a user