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

Method value_celsius

Marlin/src/gcode/parser.h:387–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385 #endif // HAS_MARLINUI_MENU && !DISABLE_M503
386
387 static celsius_t value_celsius() {
388 float f = value_float();
389 switch (input_temp_units) {
390 default:
391 case TEMPUNIT_C: break;
392 case TEMPUNIT_K: f -= 273.15f;
393 case TEMPUNIT_F: f = (f - 32) * 0.5555555556f;
394 }
395 return LROUND(f);
396 }
397
398 static celsius_t value_celsius_diff() {
399 float f = value_float();

Callers 13

autotemp_M104_M109Method · 0.80
M192Method · 0.80
M140_M190Method · 0.80
M104_M109Method · 0.80
M141Method · 0.80
M191Method · 0.80
M303Method · 0.80
M86Method · 0.80
M143Method · 0.80
M193Method · 0.80
G26Method · 0.80
M302Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected