MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / setTargetTemp_celsius

Function setTargetTemp_celsius

Marlin/src/lcd/extui/ui_api.cpp:997–1007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

panelActionMethod · 0.85
handleDataMethod · 0.85
getCommandFromTFTMethod · 0.85
tempPresetMethod · 0.85
tempTargetMethod · 0.85
tempCoolMethod · 0.85
extruderTargetTempMethod · 0.85
bedTargetTempMethod · 0.85
Command_CheckOKMethod · 0.85
Command_PresetControlMethod · 0.85
processPanelRequestMethod · 0.85
page9Method · 0.85

Calls 3

enableHeaterFunction · 0.85
setTargetHotendMethod · 0.80
hotend_max_targetMethod · 0.80

Tested by

no test coverage detected