We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 620ad65 commit 3678347Copy full SHA for 3678347
Marlin/src/gcode/parser.h
@@ -367,11 +367,11 @@ class GCodeParser {
367
float f = value_float();
368
switch (input_temp_units) {
369
default:
370
- case TEMPUNIT_C: break;
+ case TEMPUNIT_C: return f; break;
371
case TEMPUNIT_K: f -= 273.15f;
372
case TEMPUNIT_F: f = (f - 32) * 0.5555555556f;
373
}
374
- return LROUND(f + 0.5f);
+ return LROUND(f);
375
376
377
static inline celsius_t value_celsius_diff() {
@@ -382,7 +382,7 @@ class GCodeParser {
382
case TEMPUNIT_K: break;
383
case TEMPUNIT_F: f *= 0.5555555556f;
384
385
386
387
388
#else // !TEMPERATURE_UNITS_SUPPORT
0 commit comments