mirror of https://github.com/Desuuuu/klipper.git
fix virtual SD print detection
This commit is contained in:
parent
2529eea491
commit
6b4cdf1d59
|
@ -30,7 +30,7 @@ script:
|
|||
{% set t5uid1 = printer.t5uid1 %}
|
||||
{% if data == t5uid1.constants.popup_confirmed %}
|
||||
{% if t5uid1.is_printing %}
|
||||
{% if 'virtual_sdcard' in printer and printer.virtual_sdcard.is_active %}
|
||||
{% if 'virtual_sdcard' in printer and printer.virtual_sdcard.file_position != 0 %}
|
||||
CANCEL_PRINT
|
||||
{% else %}
|
||||
RESPOND TYPE=command MSG=action:cancel
|
||||
|
@ -48,7 +48,7 @@ script:
|
|||
{% set t5uid1 = printer.t5uid1 %}
|
||||
{% if data == t5uid1.constants.popup_confirmed %}
|
||||
{% if t5uid1.is_printing and not printer.pause_resume.is_paused %}
|
||||
{% if 'virtual_sdcard' in printer and printer.virtual_sdcard.is_active %}
|
||||
{% if 'virtual_sdcard' in printer and printer.virtual_sdcard.file_position != 0 %}
|
||||
PAUSE
|
||||
{% else %}
|
||||
RESPOND TYPE=command MSG=action:pause
|
||||
|
@ -66,7 +66,7 @@ script:
|
|||
{% set t5uid1 = printer.t5uid1 %}
|
||||
{% if data == t5uid1.constants.popup_confirmed %}
|
||||
{% if t5uid1.is_printing and printer.pause_resume.is_paused %}
|
||||
{% if 'virtual_sdcard' in printer and printer.virtual_sdcard.is_active %}
|
||||
{% if 'virtual_sdcard' in printer and printer.virtual_sdcard.file_position != 0 %}
|
||||
RESUME
|
||||
{% else %}
|
||||
RESPOND TYPE=command MSG=action:resume
|
||||
|
|
Loading…
Reference in New Issue