diff --git a/Marlin/src/gcode/host/M876.cpp b/Marlin/src/gcode/host/M876.cpp index 691a379434..2e9157620a 100644 --- a/Marlin/src/gcode/host/M876.cpp +++ b/Marlin/src/gcode/host/M876.cpp @@ -35,8 +35,9 @@ * M876: Handle Prompt Response */ void GcodeSuite::M876() { - if(TERN1(EMERGENCY_PARSER, emergency_parser.isEnabled())) - if (parser.seenval('S')) hostui.handle_response((uint8_t)parser.value_int()); + + if (TERN1(EMERGENCY_PARSER, emergency_parser.isEnabled()) && parser.seenval('S')) + hostui.handle_response((uint8_t)parser.value_int()); }