From e761bdbb4b77c5653557e0429d125fc0d0035327 Mon Sep 17 00:00:00 2001 From: AnHardt Date: Thu, 19 May 2016 21:00:12 +0200 Subject: [PATCH] Remove SF_ARC_FIX from G5 (Cubic B-spline) Remove SF_ARC_FIX from G5 (Cubic B-spline). SF_ARC_FIX is a fix for G2/G3 (arcs) where Skeinforge always produced relative instead of absolute coordinates for the endpoint of an arc. It's very unlikely this is also a problem with Cubic B-splines. More likely is copying from the G2/G3 code. --- Marlin/Marlin_main.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index aa03a16c3..d7cf57863 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -106,7 +106,7 @@ * G2 - CW ARC * G3 - CCW ARC * G4 - Dwell S or P - * G5 - Cubic B-spline with + * G5 - Cubic B-spline with XYZE destination and IJPQ offsets * G10 - retract filament according to settings of M207 * G11 - retract recover filament according to settings of M208 * G28 - Home one or more axes @@ -2546,14 +2546,7 @@ inline void gcode_G4() { inline void gcode_G5() { if (IsRunning()) { - #ifdef SF_ARC_FIX - bool relative_mode_backup = relative_mode; - relative_mode = true; - #endif gcode_get_destination(); - #ifdef SF_ARC_FIX - relative_mode = relative_mode_backup; - #endif float offset[] = { code_seen('I') ? code_value() : 0.0,