Browse Source

Fix parser temperature rounding

vanilla_fb_2.0.x
Scott Lahteine 4 years ago
parent
commit
5f594ce5d3
  1. 4
      Marlin/src/gcode/parser.h

4
Marlin/src/gcode/parser.h

@ -371,7 +371,7 @@ public:
case TEMPUNIT_K: f -= 273.15f;
case TEMPUNIT_F: f = (f - 32) * 0.5555555556f;
}
return LROUND(f + 0.5f);
return LROUND(f);
}
static inline celsius_t value_celsius_diff() {
@ -382,7 +382,7 @@ public:
case TEMPUNIT_K: break;
case TEMPUNIT_F: f *= 0.5555555556f;
}
return LROUND(f + 0.5f);
return LROUND(f);
}
#else // !TEMPERATURE_UNITS_SUPPORT

Loading…
Cancel
Save