Skip to content

Instantly share code, notes, and snippets.

@rootiest
Created December 1, 2022 10:14
Show Gist options
  • Save rootiest/c9e716341d02747f3e2b155745c9981d to your computer and use it in GitHub Desktop.
Save rootiest/c9e716341d02747f3e2b155745c9981d to your computer and use it in GitHub Desktop.
[gcode_macro TEST_STATE]
gcode:
{% if printer.idle_timeout.state == "Printing" %}
RESPOND MSG="We are printing"
{% endif %}
RESPOND type=error MSG="State: {printer.idle_timeout.state}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment