kliment/Sprinter — pull request #190 by felipesanches (2012-06-18 14:08:34+00:00)
Title: Refactor homing

The homing routines for each axis are basically the same code copy&pasted 3 times. So I refactored it.

I also plan to work on a z axis calibration routine similar to the Makerbot ThingOMatic one that will need to use a Z homing routine. By encapsulating the homing routine, it can be used in other gcodes out of the G28 case context where it is currently used.

If you don't like macros, I can refactor it again to be implemented as an inline function.