Browse Source

Fix parser temperature rounding

Scott Lahteine 4 years ago
parent
commit
30c299fd26
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/gcode/parser.h

+ 2
- 2
Marlin/src/gcode/parser.h View File

@@ -371,7 +371,7 @@ public:
371 371
         case TEMPUNIT_K: f -= 273.15f;
372 372
         case TEMPUNIT_F: f = (f - 32) * 0.5555555556f;
373 373
       }
374
-      return LROUND(f + 0.5f);
374
+      return LROUND(f);
375 375
     }
376 376
 
377 377
     static inline celsius_t value_celsius_diff() {
@@ -382,7 +382,7 @@ public:
382 382
         case TEMPUNIT_K: break;
383 383
         case TEMPUNIT_F: f *= 0.5555555556f;
384 384
       }
385
-      return LROUND(f + 0.5f);
385
+      return LROUND(f);
386 386
     }
387 387
 
388 388
   #else // !TEMPERATURE_UNITS_SUPPORT

Loading…
Cancel
Save