Files
2026-03-21 23:48:08 +01:00

13 lines
272 B
Python

#!/usr/bin/python3
# M104: Set Extruder Temperature
import sys
import hal
_dummy = hal.component("dummy")
P = sys.argv[1]
setVal = str(int(float(P))) #convert from float-in-a-string to int-in-a-string
hal.set_p("my-temp-ctrl.ref-temp", setVal)
print("M104 P" + setVal)