Skip to content

Commit

Permalink
Merge pull request #116 from mkbel/mk25_selector_hotfix
Browse files Browse the repository at this point in the history
MK2.5 selector homing hot fix.
  • Loading branch information
PavelSindler authored Feb 15, 2019
2 parents 160823d + 05b8124 commit d874471
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions MM-control-01/stepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,11 @@ bool home_idler()
}
}

move(idler_steps_after_homing, 0, 0); // move to initial position

tmc2130_init(tmc2130_mode);

move(idler_steps_after_homing, 0, 0); // move to initial position
delay(500);

isIdlerParked = false;

Expand Down Expand Up @@ -134,11 +136,13 @@ bool home_selector()
if (_c > 200) { shr16_set_led(0x000); _c = 0; };
}
}

tmc2130_init(tmc2130_mode);

move(0, selector_steps_after_homing,0); // move to initial position

tmc2130_init(tmc2130_mode);

delay(500);

return true;
}

Expand Down

0 comments on commit d874471

Please sign in to comment.