extract_metadata: assign correct data parameter

This fix will now correctly parse the used filament from g-code generated by ideaMaker. The used filament is located in the footer of the g-code file.

Signed-off-by:  Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
th33xitus 2021-04-10 16:52:58 +02:00 committed by Eric Callahan
parent 4d1a2668f5
commit dae0f05378
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ class IdeaMaker(BaseSlicer):
def parse_filament_total(self):
filament = _regex_find_floats(
r";Material.\d\sUsed:.*", self.header_data, strict=True)
r";Material.\d\sUsed:.*", self.footer_data, strict=True)
if filament:
return sum(filament)
return None