Endstops vars already initialized

This commit is contained in:
Scott Lahteine 2016-07-17 13:34:30 -07:00
parent 5ed1e7a464
commit 7242d44810
2 changed files with 1 additions and 15 deletions

View File

@ -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
*/
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() {
#if HAS_X_MIN

View File

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