Localize M119 in Endstops class

This commit is contained in:
Scott Lahteine
2016-04-27 14:46:24 -07:00
parent 5e4e535ce8
commit 5076d12344
3 changed files with 42 additions and 35 deletions

View File

@ -70,6 +70,11 @@ class Endstops {
*/
void report_state(); //call from somewhere to create an serial error message with the locations the endstops where hit, in case they were triggered
/**
* Report endstop positions in response to M119
*/
void M119();
// Enable / disable endstop checking globally
FORCE_INLINE void enable_globally(bool onoff=true) { enabled_globally = enabled = onoff; }