Browse Source

Use maths macros for ceil/floor

Scott Lahteine 6 years ago
parent
commit
da42f27c9e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/lcd/extensible_ui/ui_api.cpp

+ 1
- 1
Marlin/src/lcd/extensible_ui/ui_api.cpp View File

@@ -451,7 +451,7 @@ namespace ExtUI {
451 451
 
452 452
     void setZOffset_mm(const float value) {
453 453
       const float diff = (value - getZOffset_mm()) / planner.steps_to_mm[Z_AXIS];
454
-      addZOffset_steps(diff > 0 ? ceil(diff) : floor(diff));
454
+      addZOffset_steps(diff > 0 ? CEIL(diff) : FLOOR(diff));
455 455
     }
456 456
 
457 457
     void addZOffset_steps(int16_t babystep_increment) {

Loading…
Cancel
Save