void StepperControlAxis::setStepAxis() {

	if (coordHomeAxis && coordCurrentPoint == 0) {

		// Keep moving toward end stop even when position is zero
		// but end stop is not yet active
		if (motorHomeIsUp) {
			coordCurrentPoint = -1;
		} else {
			coordCurrentPoint =  1;
		}
	}

	if (coordCurrentPoint < coordDestinationPoint) {
		coordCurrentPoint++;
	} else if (coordCurrentPoint > coordDestinationPoint) {
		coordCurrentPoint--;
	}

	// set a step on the motors
	setMotorStep();

	// if the home end stop is reached, set the current position
	if (endStopAxisReached(false))
	{
		coordCurrentPoint = 0;
	}
}
void StepperControlAxis::setStepAxis() {

	if (movementUp) {
		coordCurrentPoint++;
	} else {
		coordCurrentPoint--;
	}

	// set a step on the motors
	setMotorStep();
}