Skip to content

Commit

Permalink
file_manager: Fix total filament change count parsing for PS/SS
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Wondrasek <[email protected]>
  • Loading branch information
Wondro authored and Arksine committed Mar 3, 2025
1 parent 91b6bfb commit 18f3da5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions moonraker/components/file_manager/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,9 @@ def parse_layer_count(self) -> Optional[int]:
return regex_find_int(r"; total layers count = (%D)", self.footer_data)

def parse_filament_change_count(self) -> Optional[int]:
res = regex_find_int(r"; total toolchanges = (%D)", self.footer_data)
if res is not None:
return res
return regex_find_int(r"; total filament change = (%D)", self.footer_data)

class Slic3rPE(PrusaSlicer):
Expand Down

0 comments on commit 18f3da5

Please sign in to comment.