Browse Source

Use Z_PROBE_ENDSTOP_INVERTING when checking pin status.

Chris Roadfeldt 10 years ago
parent
commit
ec1d9c0b8f
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/stepper.cpp

+ 2
- 2
Marlin/stepper.cpp View File

@@ -545,7 +545,7 @@ ISR(TIMER1_COMPA_vect) {
545 545
 
546 546
         #if defined(Z_PROBE_PIN) && Z_PROBE_PIN > -1
547 547
           UPDATE_ENDSTOP(z, Z, probe, PROBE);
548
-          z_probe_endstop=(READ(Z_PROBE_PIN) != Z_MIN_ENDSTOP_INVERTING);
548
+          z_probe_endstop=(READ(Z_PROBE_PIN) != Z_PROBE_ENDSTOP_INVERTING);
549 549
           if(z_probe_endstop && old_z_probe_endstop)
550 550
           {
551 551
         	  endstops_trigsteps[Z_AXIS] = count_position[Z_AXIS];
@@ -592,7 +592,7 @@ ISR(TIMER1_COMPA_vect) {
592 592
 
593 593
         #if defined(Z_PROBE_PIN) && Z_PROBE_PIN > -1
594 594
           UPDATE_ENDSTOP(z, Z, probe, PROBE);
595
-          z_probe_endstop=(READ(Z_PROBE_PIN) != Z_MAX_ENDSTOP_INVERTING);
595
+          z_probe_endstop=(READ(Z_PROBE_PIN) != Z_PROBE_ENDSTOP_INVERTING);
596 596
           if(z_probe_endstop && old_z_probe_endstop)
597 597
           {
598 598
         	  endstops_trigsteps[Z_AXIS] = count_position[Z_AXIS];

Loading…
Cancel
Save