Optional HOST_STATUS_NOTIFICATIONS (#22833)

This commit is contained in:
Taylor Talkington
2022-02-08 18:36:06 -05:00
committed by Scott Lahteine
parent 973366e6aa
commit b964d2fff0
9 changed files with 55 additions and 17 deletions

View File

@ -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);