Use maths macros for ceil/floor

2.0.x
Scott Lahteine 6 years ago
parent de4561c980
commit da42f27c9e

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

Loading…
Cancel
Save