Browse Source

Do Delta radius check without sqrt

pull/1/head
Scott Lahteine 8 years ago
parent
commit
12d72363cb
  1. 3
      Marlin/Marlin_main.cpp

3
Marlin/Marlin_main.cpp

@ -3667,8 +3667,7 @@ inline void gcode_G28() {
#if ENABLED(DELTA)
// Avoid probing outside the round or hexagonal area of a delta printer
float distance_from_center = HYPOT(xProbe, yProbe);
if (distance_from_center > DELTA_PROBEABLE_RADIUS) continue;
if (sq(xProbe) + sq(yProbe) > sq(DELTA_PROBEABLE_RADIUS)) continue;
#endif
float measured_z = probe_pt(xProbe, yProbe, stow_probe_after_each, verbose_level);

Loading…
Cancel
Save