Browse Source

Added fix for SF Arc Point fillet procedure

Erik vd Zalm 11 years ago
parent
commit
e358a2d7af
2 changed files with 11 additions and 0 deletions
  1. 3
    0
      Marlin/Configuration.h
  2. 8
    0
      Marlin/Marlin.pde

+ 3
- 0
Marlin/Configuration.h View File

285
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
285
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
286
 // #define PHOTOGRAPH_PIN     23
286
 // #define PHOTOGRAPH_PIN     23
287
 
287
 
288
+// SF send wrong arc g-codes when using Arc Point as fillet procedure
289
+//#define SF_ARC_FIX
290
+
288
 #include "Configuration_adv.h"
291
 #include "Configuration_adv.h"
289
 #include "thermistortables.h"
292
 #include "thermistortables.h"
290
 
293
 

+ 8
- 0
Marlin/Marlin.pde View File

1576
 
1576
 
1577
 void get_arc_coordinates()
1577
 void get_arc_coordinates()
1578
 {
1578
 {
1579
+#ifdef SF_ARC_FIX
1580
+   bool relative_mode_backup = relative_mode;
1581
+   bool relative_mode = true;
1582
+#endif
1579
    get_coordinates();
1583
    get_coordinates();
1584
+#ifdef SF_ARC_FIX
1585
+   relative_mode=relative_mode_backup;
1586
+#endif
1587
+
1580
    if(code_seen('I')) {
1588
    if(code_seen('I')) {
1581
      offset[0] = code_value();
1589
      offset[0] = code_value();
1582
    } 
1590
    } 

Loading…
Cancel
Save