Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kantlivelong/3517e6c080b00dc96381db797a5f1eb8 to your computer and use it in GitHub Desktop.
Save kantlivelong/3517e6c080b00dc96381db797a5f1eb8 to your computer and use it in GitHub Desktop.
; Wait for bed to reach 80% of required temp then set to required temp
{% if printer_profile.heatedBed %}
M190 S{{ (plugins.preheat.bed * 0.8)|round }}
M140 S{{ plugins.preheat.bed }}
{% endif %}
; Set tool temps
{% for tool, temp in plugins.preheat.tools.iteritems() %}
M104 T{{ tool }} S{{ temp }}
{% endfor %}
; Wait for bed
{% if printer_profile.heatedBed %}
M190 S{{ plugins.preheat.bed }}
{% endif %}
; Wait for tools
{% for tool, temp in plugins.preheat.tools.iteritems() %}
M109 T{{ tool }} S{{ temp }}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment