Skip to content

Commit

Permalink
delete obsolete and wrong code
Browse files Browse the repository at this point in the history
"i" runs from 0 to 4 but "add_homeing" array size is 3 only. On the
other hand the calculated value gets overwritten by either one of the
if choice.
  • Loading branch information
MaikStohn committed May 3, 2012
1 parent 789ba02 commit 060b38d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Marlin/Marlin.pde
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,6 @@ void process_commands()
st_synchronize();
for(int8_t i=0; i < NUM_AXIS; i++) {
if(code_seen(axis_codes[i])) {
current_position[i] = code_value()+add_homeing[i];
if(i == E_AXIS) {
current_position[i] = code_value();
plan_set_e_position(current_position[E_AXIS]);
Expand Down

0 comments on commit 060b38d

Please sign in to comment.