Skip to content

Commit

Permalink
Extras: fix post-processing success message
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt committed Dec 1, 2024
1 parent e5a4b78 commit ed022c6
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions configuration/klippy/ratos.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,12 @@ def _interpret_output(data):
self.gcode.run_script_from_command("SET_GCODE_VARIABLE MACRO=START_PRINT VARIABLE=first_x VALUE=" + str(analysis_result['firstMoveX']))
if 'firstMoveY' in analysis_result:
self.gcode.run_script_from_command("SET_GCODE_VARIABLE MACRO=START_PRINT VARIABLE=first_y VALUE=" + str(analysis_result['firstMoveY']))
else:
self.console_echo(
'Post-processing completed', 'success',
f'Slicer: {data["payload"]["generator"]} v{data["payload"]["generatorVersion"]} ' +
f'_N_Used tools: T{", T".join(analysis_result["usedTools"])}' if "usedTools" in analysis_result else "" +
f'_N_Toolshifts: {analysis_result["toolChangeCount"]}' if "toolChangeCount" in analysis_result else ""
)
self.console_echo(
'Post-processing completed', 'success',
f'Slicer: {data["payload"]["generator"]} v{data["payload"]["generatorVersion"]} ' +
f'_N_Used tools: T{", T".join(analysis_result["usedTools"])}' if "usedTools" in analysis_result else "" +
f'_N_Toolshifts: {analysis_result["toolChangeCount"]}' if "toolChangeCount" in analysis_result else ""
)
if data['result'] == 'progress':
eta_secs = data['payload']['eta']
if eta_secs < 60:
Expand Down

0 comments on commit ed022c6

Please sign in to comment.