Browse Source

Endstops vars already initialized

Scott Lahteine 8 years ago
parent
commit
7242d44810
2 changed files with 1 additions and 15 deletions
  1. 0
    14
      Marlin/endstops.cpp
  2. 1
    1
      Marlin/endstops.h

+ 0
- 14
Marlin/endstops.cpp View File

64
  * Class and Instance Methods
64
  * Class and Instance Methods
65
  */
65
  */
66
 
66
 
67
-Endstops::Endstops() {
68
-  enable_globally(
69
-    #if ENABLED(ENDSTOPS_ALWAYS_ON_DEFAULT)
70
-      (true)
71
-    #else
72
-      (false)
73
-    #endif
74
-  );
75
-  enable(true);
76
-  #if HAS_BED_PROBE
77
-    enable_z_probe(false);
78
-  #endif
79
-} // Endstops::Endstops
80
-
81
 void Endstops::init() {
67
 void Endstops::init() {
82
 
68
 
83
   #if HAS_X_MIN
69
   #if HAS_X_MIN

+ 1
- 1
Marlin/endstops.h View File

43
     #endif
43
     #endif
44
         current_endstop_bits, old_endstop_bits;
44
         current_endstop_bits, old_endstop_bits;
45
         
45
         
46
-    Endstops();
46
+    Endstops() {};
47
 
47
 
48
     /**
48
     /**
49
      * Initialize the endstop pins
49
      * Initialize the endstop pins

Loading…
Cancel
Save