|
|
|
@ -388,7 +388,7 @@ ISR(TIMER1_COMPA_vect)
|
|
|
|
|
#endif
|
|
|
|
|
{
|
|
|
|
|
#if defined(X_MIN_PIN) && X_MIN_PIN > -1
|
|
|
|
|
bool x_min_endstop=(READ(X_MIN_PIN) != X_ENDSTOPS_INVERTING);
|
|
|
|
|
bool x_min_endstop=(READ(X_MIN_PIN) != X_MIN_ENDSTOP_INVERTING);
|
|
|
|
|
if(x_min_endstop && old_x_min_endstop && (current_block->steps_x > 0)) {
|
|
|
|
|
endstops_trigsteps[X_AXIS] = count_position[X_AXIS];
|
|
|
|
|
endstop_x_hit=true;
|
|
|
|
@ -408,7 +408,7 @@ ISR(TIMER1_COMPA_vect)
|
|
|
|
|
#endif
|
|
|
|
|
{
|
|
|
|
|
#if defined(X_MAX_PIN) && X_MAX_PIN > -1
|
|
|
|
|
bool x_max_endstop=(READ(X_MAX_PIN) != X_ENDSTOPS_INVERTING);
|
|
|
|
|
bool x_max_endstop=(READ(X_MAX_PIN) != X_MAX_ENDSTOP_INVERTING);
|
|
|
|
|
if(x_max_endstop && old_x_max_endstop && (current_block->steps_x > 0)){
|
|
|
|
|
endstops_trigsteps[X_AXIS] = count_position[X_AXIS];
|
|
|
|
|
endstop_x_hit=true;
|
|
|
|
@ -428,7 +428,7 @@ ISR(TIMER1_COMPA_vect)
|
|
|
|
|
CHECK_ENDSTOPS
|
|
|
|
|
{
|
|
|
|
|
#if defined(Y_MIN_PIN) && Y_MIN_PIN > -1
|
|
|
|
|
bool y_min_endstop=(READ(Y_MIN_PIN) != Y_ENDSTOPS_INVERTING);
|
|
|
|
|
bool y_min_endstop=(READ(Y_MIN_PIN) != Y_MIN_ENDSTOP_INVERTING);
|
|
|
|
|
if(y_min_endstop && old_y_min_endstop && (current_block->steps_y > 0)) {
|
|
|
|
|
endstops_trigsteps[Y_AXIS] = count_position[Y_AXIS];
|
|
|
|
|
endstop_y_hit=true;
|
|
|
|
@ -442,7 +442,7 @@ ISR(TIMER1_COMPA_vect)
|
|
|
|
|
CHECK_ENDSTOPS
|
|
|
|
|
{
|
|
|
|
|
#if defined(Y_MAX_PIN) && Y_MAX_PIN > -1
|
|
|
|
|
bool y_max_endstop=(READ(Y_MAX_PIN) != Y_ENDSTOPS_INVERTING);
|
|
|
|
|
bool y_max_endstop=(READ(Y_MAX_PIN) != Y_MAX_ENDSTOP_INVERTING);
|
|
|
|
|
if(y_max_endstop && old_y_max_endstop && (current_block->steps_y > 0)){
|
|
|
|
|
endstops_trigsteps[Y_AXIS] = count_position[Y_AXIS];
|
|
|
|
|
endstop_y_hit=true;
|
|
|
|
@ -464,7 +464,7 @@ ISR(TIMER1_COMPA_vect)
|
|
|
|
|
CHECK_ENDSTOPS
|
|
|
|
|
{
|
|
|
|
|
#if defined(Z_MIN_PIN) && Z_MIN_PIN > -1
|
|
|
|
|
bool z_min_endstop=(READ(Z_MIN_PIN) != Z_ENDSTOPS_INVERTING);
|
|
|
|
|
bool z_min_endstop=(READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING);
|
|
|
|
|
if(z_min_endstop && old_z_min_endstop && (current_block->steps_z > 0)) {
|
|
|
|
|
endstops_trigsteps[Z_AXIS] = count_position[Z_AXIS];
|
|
|
|
|
endstop_z_hit=true;
|
|
|
|
@ -485,7 +485,7 @@ ISR(TIMER1_COMPA_vect)
|
|
|
|
|
CHECK_ENDSTOPS
|
|
|
|
|
{
|
|
|
|
|
#if defined(Z_MAX_PIN) && Z_MAX_PIN > -1
|
|
|
|
|
bool z_max_endstop=(READ(Z_MAX_PIN) != Z_ENDSTOPS_INVERTING);
|
|
|
|
|
bool z_max_endstop=(READ(Z_MAX_PIN) != Z_MAX_ENDSTOP_INVERTING);
|
|
|
|
|
if(z_max_endstop && old_z_max_endstop && (current_block->steps_z > 0)) {
|
|
|
|
|
endstops_trigsteps[Z_AXIS] = count_position[Z_AXIS];
|
|
|
|
|
endstop_z_hit=true;
|
|
|
|
|