Browse Source

Endstops vars already initialized

pull/1/head
Scott Lahteine 8 years ago
parent
commit
7242d44810
  1. 14
      Marlin/endstops.cpp
  2. 2
      Marlin/endstops.h

14
Marlin/endstops.cpp

@ -64,20 +64,6 @@ volatile char Endstops::endstop_hit_bits; // use X_MIN, Y_MIN, Z_MIN and Z_MIN_P
* Class and Instance Methods * Class and Instance Methods
*/ */
Endstops::Endstops() {
enable_globally(
#if ENABLED(ENDSTOPS_ALWAYS_ON_DEFAULT)
(true)
#else
(false)
#endif
);
enable(true);
#if HAS_BED_PROBE
enable_z_probe(false);
#endif
} // Endstops::Endstops
void Endstops::init() { void Endstops::init() {
#if HAS_X_MIN #if HAS_X_MIN

2
Marlin/endstops.h

@ -43,7 +43,7 @@ class Endstops {
#endif #endif
current_endstop_bits, old_endstop_bits; current_endstop_bits, old_endstop_bits;
Endstops(); Endstops() {};
/** /**
* Initialize the endstop pins * Initialize the endstop pins

Loading…
Cancel
Save