Ver código fonte

const arguments to test_dual_z_endstops

Scott Lahteine 8 anos atrás
pai
commit
f3720f4e81
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1
    1
      Marlin/endstops.cpp
  2. 1
    1
      Marlin/endstops.h

+ 1
- 1
Marlin/endstops.cpp Ver arquivo

@@ -222,7 +222,7 @@ void Endstops::M119() {
222 222
 #if ENABLED(Z_DUAL_ENDSTOPS)
223 223
 
224 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 226
     byte z_test = TEST_ENDSTOP(es1) | (TEST_ENDSTOP(es2) << 1); // bit 0 for Z, bit 1 for Z2
227 227
     if (z_test && stepper.current_block->steps[Z_AXIS] > 0) {
228 228
       SBI(endstop_hit_bits, Z_MIN);

+ 1
- 1
Marlin/endstops.h Ver arquivo

@@ -86,7 +86,7 @@ class Endstops {
86 86
   private:
87 87
 
88 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 90
     #endif
91 91
 };
92 92
 

Carregando…
Cancelar
Salvar