From 7242d4481061c5749aaf2f40ae26c6440239c6d2 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 17 Jul 2016 13:34:30 -0700 Subject: [PATCH] Endstops vars already initialized --- Marlin/endstops.cpp | 14 -------------- Marlin/endstops.h | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/Marlin/endstops.cpp b/Marlin/endstops.cpp index 9eec4a5790..751296d403 100644 --- a/Marlin/endstops.cpp +++ b/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 */ -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 diff --git a/Marlin/endstops.h b/Marlin/endstops.h index 76b34862c1..e5d541cf19 100644 --- a/Marlin/endstops.h +++ b/Marlin/endstops.h @@ -43,7 +43,7 @@ class Endstops { #endif current_endstop_bits, old_endstop_bits; - Endstops(); + Endstops() {}; /** * Initialize the endstop pins