большой рефакторинг
This commit is contained in:
13
Scripts/clear_timelapse.cfg
Normal file
13
Scripts/clear_timelapse.cfg
Normal file
@@ -0,0 +1,13 @@
|
||||
[gcode_shell_command clear_tg_timelapse]
|
||||
command: sh ../Macros/clear_timelapse.sh
|
||||
timeout: 30.
|
||||
verbose: True
|
||||
|
||||
[gcode_macro CLEAR_TG_TIMELAPSE]
|
||||
gcode:
|
||||
{% if printer.idle_timeout.state == "Idle" or printer.idle_timeout.state == "Ready" %}
|
||||
RUN_SHELL_COMMAND CMD=clear_tg_timelapse
|
||||
RESPOND MSG="Done :)"
|
||||
{% else %}
|
||||
RESPOND MSG="Не-не-не, принтер печатает"
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user