Fix reset of endstops and move state

This commit is contained in:
Scott Lahteine
2018-05-24 19:28:15 -05:00
parent 50fa8e01c1
commit 7261f48872
3 changed files with 5 additions and 12 deletions

View File

@ -111,9 +111,9 @@ class Endstops {
FORCE_INLINE static esbits_t state() { return live_state; }
/**
* Print an error message reporting the position when the endstops were last hit.
* Report endstop hits to serial. Called from loop().
*/
static void report_state(); //call from somewhere to create an serial error message with the locations the endstops where hit, in case they were triggered
static void report_state();
/**
* Report endstop positions in response to M119
@ -130,7 +130,7 @@ class Endstops {
static void not_homing();
// Clear endstops (i.e., they were hit intentionally) to suppress the report
static void hit_on_purpose();
FORCE_INLINE static void hit_on_purpose() { hit_state = 0; }
// Enable / disable endstop z-probe checking
#if HAS_BED_PROBE