forked from CreatBot/CreatBotKlipperScreen
preheat: add heater_generic
This commit is contained in:
@@ -40,6 +40,10 @@ class KlippyGcodes:
|
||||
def set_ext_temp(temp, tool=0):
|
||||
return "%s T%s S%s" % (KlippyGcodes.SET_EXT_TEMP, str(tool), str(temp))
|
||||
|
||||
@staticmethod
|
||||
def set_heater_temp(heater, temp):
|
||||
return 'SET_HEATER_TEMPERATURE heater="%s" target=%s' % (heater, str(temp))
|
||||
|
||||
@staticmethod
|
||||
def set_fan_speed(speed):
|
||||
speed = str( int(float(int(speed) % 101)/100*255) )
|
||||
|
Reference in New Issue
Block a user