完善断电续打功能

This commit is contained in:
张开科 2024-11-07 15:57:11 +08:00
parent b9770c3385
commit d62caaee25
5 changed files with 6 additions and 3 deletions

View File

@ -788,7 +788,8 @@ gcode:
initial_duration: 3.5
gcode:
{% set was_interrupted = printer.save_variables.variables.was_interrupted | string %}
{% if was_interrupted == "True"%}
{% set enable_recovery = printer.save_variables.variables.power_loss_recovery | default(Ture) | string %}
{% if enable_recovery != "False" and was_interrupted == "True" %}
RESPOND TYPE=command MSG="action:prompt_begin "
RESPOND TYPE=command MSG="action:prompt_text The last print job was not completed continue printing?"
RESPOND TYPE=command MSG="action:prompt_footer_button Continue|_RESUME_INTERRUPTED"

View File

@ -781,7 +781,8 @@ gcode:
initial_duration: 3.5
gcode:
{% set was_interrupted = printer.save_variables.variables.was_interrupted | string %}
{% if was_interrupted == "True"%}
{% set enable_recovery = printer.save_variables.variables.power_loss_recovery | default(Ture) | string %}
{% if enable_recovery != "False" and was_interrupted == "True" %}
RESPOND TYPE=command MSG="action:prompt_begin "
RESPOND TYPE=command MSG="action:prompt_text The last print job was not completed continue printing?"
RESPOND TYPE=command MSG="action:prompt_footer_button Continue|_RESUME_INTERRUPTED"

View File

@ -947,7 +947,8 @@ gcode:
initial_duration: 3.5
gcode:
{% set was_interrupted = printer.save_variables.variables.was_interrupted | string %}
{% if was_interrupted == "True"%}
{% set enable_recovery = printer.save_variables.variables.power_loss_recovery | default(Ture) | string %}
{% if enable_recovery != "False" and was_interrupted == "True" %}
RESPOND TYPE=command MSG="action:prompt_begin "
RESPOND TYPE=command MSG="action:prompt_text The last print job was not completed continue printing?"
RESPOND TYPE=command MSG="action:prompt_footer_button Continue|_RESUME_INTERRUPTED"

0
scripts/clear_plr.sh Normal file → Executable file
View File

0
scripts/plr.sh Normal file → Executable file
View File