| 995 | } |
| 996 | |
| 997 | void setTargetTemp_celsius(const_float_t inval, const extruder_t extruder) { |
| 998 | float value = inval; |
| 999 | #ifdef TOUCH_UI_LCD_TEMP_SCALING |
| 1000 | value *= TOUCH_UI_LCD_TEMP_SCALING; |
| 1001 | #endif |
| 1002 | #if HAS_HOTEND |
| 1003 | const int16_t e = extruder - E0; |
| 1004 | enableHeater(extruder); |
| 1005 | thermalManager.setTargetHotend(LROUND(constrain(value, 0, thermalManager.hotend_max_target(e))), e); |
| 1006 | #endif |
| 1007 | } |
| 1008 | |
| 1009 | void setTargetFan_percent(const_float_t value, const fan_t fan) { |
| 1010 | #if HAS_FAN |
no test coverage detected