diff options
author | midopple <mdoppler@gmx.at> | 2012-03-28 06:41:33 -0700 |
---|---|---|
committer | midopple <mdoppler@gmx.at> | 2012-03-28 06:41:33 -0700 |
commit | b75a6ad79de2065d7c0d991d3cad251f2834b486 (patch) | |
tree | 51029a04bbfc88f02ca0962cb16a9ad5a80ed726 /Sprinter | |
parent | 85f61f040ff303fbd88b311bc861fe29b1789234 (diff) | |
parent | 2579d9390d9c2a94bf7ab296ebc1c6f539a725a9 (diff) |
Merge pull request #159 from midopple/experimental
Fixed arc offset
Diffstat (limited to 'Sprinter')
-rw-r--r-- | Sprinter/Sprinter.pde | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde index 53d42b8..3cec6a5 100644 --- a/Sprinter/Sprinter.pde +++ b/Sprinter/Sprinter.pde @@ -94,7 +94,10 @@ - Make fastio & Arduino pin numbering consistent for AT90USB128x. --> Thanks to lincomatic - Select Speedtable with F_CPU - Use same Values for Speedtables as Marlin -- +- + + Version 1.3.12T +- Fixed arc offset. @@ -196,7 +199,7 @@ void __cxa_pure_virtual(){}; // M603 - Show Free Ram -#define _VERSION_TEXT "1.3.11T / 19.03.2012" +#define _VERSION_TEXT "1.3.12T / 27.03.2012" //Stepper Movement Variables char axis_codes[NUM_AXIS] = {'X', 'Y', 'Z', 'E'}; @@ -1761,15 +1764,26 @@ FORCE_INLINE void get_coordinates() } #ifdef USE_ARC_FUNCTION -FORCE_INLINE void get_arc_coordinates() +void get_arc_coordinates() { get_coordinates(); - if(code_seen('I')) offset[0] = code_value(); - if(code_seen('J')) offset[1] = code_value(); + if(code_seen('I')) { + offset[0] = code_value(); + } + else { + offset[0] = 0.0; + } + if(code_seen('J')) { + offset[1] = code_value(); + } + else { + offset[1] = 0.0; + } } #endif + void prepare_move() { long help_feedrate = 0; |