M111 - Debug Level

- Add `M111` as a standard option to set the debug level
- Implement `DEBUG_ECHO` in `process_commands`
- Other debug levels (e.g., `DEBUG_DRYRUN`) need more work
This commit is contained in:
Scott Lahteine
2015-04-26 20:08:45 -07:00
parent 1f530beaf1
commit d43cc2dd5f
4 changed files with 55 additions and 22 deletions

View File

@ -223,6 +223,18 @@ void Stop();
void filrunout();
#endif
/**
* Debug flags - not yet widely applied
*/
enum DebugFlags {
DEBUG_ECHO = BIT(0),
DEBUG_INFO = BIT(1),
DEBUG_ERRORS = BIT(2),
DEBUG_DRYRUN = BIT(3),
DEBUG_COMMUNICATION = BIT(4)
};
extern uint8_t marlin_debug_flags;
extern bool Running;
inline bool IsRunning() { return Running; }
inline bool IsStopped() { return !Running; }