Skip to content

Commit 21559b0

Browse files
committed
🩹 Call SERIAL_IMPL.msgDone() after M105
1 parent 0916d32 commit 21559b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Marlin/src/gcode/gcode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ void GcodeSuite::dwell(const millis_t time) {
319319
/**
320320
* Process the parsed command and dispatch it to its handler
321321
*/
322-
void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
322+
void GcodeSuite::process_parsed_command(bool no_ok/*=false*/) {
323323
TERN_(HAS_FANCHECK, fan_check.check_deferred_error());
324324

325325
KEEPALIVE_STATE(IN_HANDLER);
@@ -582,7 +582,7 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
582582
case 109: M109(); break; // M109: Wait for hotend temperature to reach target
583583
#endif
584584

585-
case 105: M105(); return; // M105: Report Temperatures (and say "ok")
585+
case 105: M105(); no_ok = true; break; // M105: Report Temperatures (and say "ok")
586586

587587
#if HAS_FAN
588588
case 106: M106(); break; // M106: Fan On

Marlin/src/gcode/gcode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ class GcodeSuite {
458458
static int8_t get_target_e_stepper_from_command(const int8_t dval=-1);
459459
static void get_destination_from_command();
460460

461-
static void process_parsed_command(const bool no_ok=false);
461+
static void process_parsed_command(bool no_ok=false);
462462
static void process_next_command();
463463

464464
// Execute G-code in-place, preserving current G-code parameters

0 commit comments

Comments
 (0)