From e358a2d7afae323abc7205cef31615a4d6b0258c Mon Sep 17 00:00:00 2001 From: Erik vd Zalm Date: Sun, 2 Sep 2012 01:12:49 +0200 Subject: [PATCH] Added fix for SF Arc Point fillet procedure --- Marlin/Configuration.h | 3 +++ Marlin/Marlin.pde | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index f01af4144..0ec06316f 100644 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -285,6 +285,9 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th // Data from: http://www.doc-diy.net/photo/rc-1_hacked/ // #define PHOTOGRAPH_PIN 23 +// SF send wrong arc g-codes when using Arc Point as fillet procedure +//#define SF_ARC_FIX + #include "Configuration_adv.h" #include "thermistortables.h" diff --git a/Marlin/Marlin.pde b/Marlin/Marlin.pde index f8ae5b874..89104333b 100644 --- a/Marlin/Marlin.pde +++ b/Marlin/Marlin.pde @@ -1576,7 +1576,15 @@ void get_coordinates() void get_arc_coordinates() { +#ifdef SF_ARC_FIX + bool relative_mode_backup = relative_mode; + bool relative_mode = true; +#endif get_coordinates(); +#ifdef SF_ARC_FIX + relative_mode=relative_mode_backup; +#endif + if(code_seen('I')) { offset[0] = code_value(); }