Browse Source

const arguments to test_dual_z_endstops

Scott Lahteine 8 years ago
parent
commit
f3720f4e81
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      Marlin/endstops.cpp
  2. 1
    1
      Marlin/endstops.h

+ 1
- 1
Marlin/endstops.cpp View File

222
 #if ENABLED(Z_DUAL_ENDSTOPS)
222
 #if ENABLED(Z_DUAL_ENDSTOPS)
223
 
223
 
224
   // Pass the result of the endstop test
224
   // Pass the result of the endstop test
225
-  void Endstops::test_dual_z_endstops(EndstopEnum es1, EndstopEnum es2) {
225
+  void Endstops::test_dual_z_endstops(const EndstopEnum es1, const EndstopEnum es2) {
226
     byte z_test = TEST_ENDSTOP(es1) | (TEST_ENDSTOP(es2) << 1); // bit 0 for Z, bit 1 for Z2
226
     byte z_test = TEST_ENDSTOP(es1) | (TEST_ENDSTOP(es2) << 1); // bit 0 for Z, bit 1 for Z2
227
     if (z_test && stepper.current_block->steps[Z_AXIS] > 0) {
227
     if (z_test && stepper.current_block->steps[Z_AXIS] > 0) {
228
       SBI(endstop_hit_bits, Z_MIN);
228
       SBI(endstop_hit_bits, Z_MIN);

+ 1
- 1
Marlin/endstops.h View File

86
   private:
86
   private:
87
 
87
 
88
     #if ENABLED(Z_DUAL_ENDSTOPS)
88
     #if ENABLED(Z_DUAL_ENDSTOPS)
89
-      static void test_dual_z_endstops(EndstopEnum es1, EndstopEnum es2);
89
+      static void test_dual_z_endstops(const EndstopEnum es1, const EndstopEnum es2);
90
     #endif
90
     #endif
91
 };
91
 };
92
 
92
 

Loading…
Cancel
Save