Skip to content

Commit

Permalink
Endstops vars already initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jul 17, 2016
1 parent 5ed1e7a commit 7242d44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
14 changes: 0 additions & 14 deletions Marlin/endstops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Marlin/endstops.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Endstops {
#endif
current_endstop_bits, old_endstop_bits;

Endstops();
Endstops() {};

/**
* Initialize the endstop pins
Expand Down

0 comments on commit 7242d44

Please sign in to comment.