✨ Optional HOST_STATUS_NOTIFICATIONS (#22833)
This commit is contained in:
committed by
Scott Lahteine
parent
973366e6aa
commit
b964d2fff0
@ -22,12 +22,20 @@
|
||||
|
||||
#include "../gcode.h"
|
||||
|
||||
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||
#include "../../feature/host_actions.h"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* M111: Set the debug level
|
||||
*/
|
||||
void GcodeSuite::M111() {
|
||||
if (parser.seenval('S')) marlin_debug_flags = parser.value_byte();
|
||||
|
||||
#if EITHER(HOST_ACTION_COMMANDS, HOST_PROMPT_SUPPORT)
|
||||
if (parser.seenval('H')) hostui.flag.bits = parser.value_byte();
|
||||
#endif
|
||||
|
||||
static PGMSTR(str_debug_1, STR_DEBUG_ECHO);
|
||||
static PGMSTR(str_debug_2, STR_DEBUG_INFO);
|
||||
static PGMSTR(str_debug_4, STR_DEBUG_ERRORS);
|
||||
|
Reference in New Issue
Block a user