Update parsing script to handle a second color

This commit is contained in:
Queen Vinyl Da.i'gyu-Kazotetsu committed 2024-06-14 21:03:56 -07:00
1 parent 15d51f3a0c
commit 7a4a57b0aa
1 file changed
+4 -1
+4 -1
View File
@@ -118,9 +118,12 @@ class Tag():
"production_date": bytes_to_date(self.blocks[12]),
"unknown": bytes_to_string(self.blocks[13]), # Appears to be some sort of date -- on some tags, this is identical to the production date, but not always
}
# 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 = ""