Added fix for SF Arc Point fillet procedure

This commit is contained in:
Erik vd Zalm 2012-09-02 01:12:49 +02:00
parent 044a64a1fb
commit e358a2d7af
2 changed files with 11 additions and 0 deletions

View file

@ -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"

View file

@ -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();
}