Merge pull request #3926 from thinkyhead/rc_statics_endstops

Drop FORCE_INLINE from endstops.h
This commit is contained in:
Scott Lahteine 2016-05-31 19:35:41 -07:00
commit 67f816ff79

View file

@ -66,21 +66,21 @@ class Endstops {
static void M119();
// Enable / disable endstop checking globally
static FORCE_INLINE void enable_globally(bool onoff=true) { enabled_globally = enabled = onoff; }
static void enable_globally(bool onoff=true) { enabled_globally = enabled = onoff; }
// Enable / disable endstop checking
static FORCE_INLINE void enable(bool onoff=true) { enabled = onoff; }
static void enable(bool onoff=true) { enabled = onoff; }
// Disable / Enable endstops based on ENSTOPS_ONLY_FOR_HOMING and global enable
static FORCE_INLINE void not_homing() { enabled = enabled_globally; }
static void not_homing() { enabled = enabled_globally; }
// Clear endstops (i.e., they were hit intentionally) to suppress the report
static FORCE_INLINE void hit_on_purpose() { endstop_hit_bits = 0; }
static void hit_on_purpose() { endstop_hit_bits = 0; }
// Enable / disable endstop z-probe checking
#if HAS_BED_PROBE
static volatile bool z_probe_enabled;
static FORCE_INLINE void enable_z_probe(bool onoff=true) { z_probe_enabled = onoff; }
static void enable_z_probe(bool onoff=true) { z_probe_enabled = onoff; }
#endif
private: