|
@@ -558,7 +558,7 @@ ISR(TIMER1_COMPA_vect) {
|
558
|
558
|
z2_min_both = z2_min_endstop && old_z2_min_endstop;
|
559
|
559
|
if ((z_min_both || z2_min_both) && current_block->steps[Z_AXIS] > 0) {
|
560
|
560
|
endstops_trigsteps[Z_AXIS] = count_position[Z_AXIS];
|
561
|
|
- endstop_z_hit = true;
|
|
561
|
+ endstop_hit_bits |= BIT(Z_MIN);
|
562
|
562
|
if (!performing_homing || (performing_homing && z_min_both && z2_min_both)) //if not performing home or if both endstops were trigged during homing...
|
563
|
563
|
step_events_completed = current_block->step_event_count;
|
564
|
564
|
}
|
|
@@ -613,7 +613,7 @@ ISR(TIMER1_COMPA_vect) {
|
613
|
613
|
z2_max_both = z2_max_endstop && old_z2_max_endstop;
|
614
|
614
|
if ((z_max_both || z2_max_both) && current_block->steps[Z_AXIS] > 0) {
|
615
|
615
|
endstops_trigsteps[Z_AXIS] = count_position[Z_AXIS];
|
616
|
|
- endstop_z_hit = true;
|
|
616
|
+ endstop_hit_bits |= BIT(Z_MIN);
|
617
|
617
|
|
618
|
618
|
// if (z_max_both) SERIAL_ECHOLN("z_max_endstop = true");
|
619
|
619
|
// if (z2_max_both) SERIAL_ECHOLN("z2_max_endstop = true");
|