Browse Source

Prevent position_is_reachable disaster

Scott Lahteine 6 years ago
parent
commit
7aadfe32e7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/Marlin.h

+ 1
- 1
Marlin/Marlin.h View File

482
     // This won't work on SCARA since the probe offset rotates with the arm.
482
     // This won't work on SCARA since the probe offset rotates with the arm.
483
 
483
 
484
     return position_is_reachable(rx, ry)
484
     return position_is_reachable(rx, ry)
485
-        && position_is_reachable(rx - X_PROBE_OFFSET_FROM_EXTRUDER, ry - Y_PROBE_OFFSET_FROM_EXTRUDER);
485
+        && position_is_reachable(rx - (X_PROBE_OFFSET_FROM_EXTRUDER), ry - (Y_PROBE_OFFSET_FROM_EXTRUDER));
486
   }
486
   }
487
 
487
 
488
 #else // CARTESIAN
488
 #else // CARTESIAN

Loading…
Cancel
Save