Created
February 13, 2022 20:09
-
-
Save kmcallister/e90f967ff800a5dabb3b3f9d84476bbc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
temps = sys.argv[1:] | |
for ln in sys.stdin: | |
if ln.rstrip() == 'M600': | |
sys.stdout.write('M104 S' + temps.pop(0) + '\n') | |
else: | |
sys.stdout.write(ln) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment