Skip to content

Commit 6ea192a

Browse files
pmjdebruijnthinkyhead
authored andcommitted
🚸 M306: Indicate MPC Autotune (MarlinFirmware#24949)
1 parent 0de4ec4 commit 6ea192a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Marlin/src/gcode/temp/M306.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#if ENABLED(MPCTEMP)
2626

2727
#include "../gcode.h"
28+
#include "../../lcd/marlinui.h"
2829
#include "../../module/temperature.h"
2930

3031
/**
@@ -42,7 +43,12 @@
4243
*/
4344

4445
void GcodeSuite::M306() {
45-
if (parser.seen_test('T')) { thermalManager.MPC_autotune(); return; }
46+
if (parser.seen_test('T')) {
47+
LCD_MESSAGE(MSG_MPC_AUTOTUNE);
48+
thermalManager.MPC_autotune();
49+
ui.reset_status();
50+
return;
51+
}
4652

4753
if (parser.seen("ACFPRH")) {
4854
const heater_id_t hid = (heater_id_t)parser.intval('E', 0);

0 commit comments

Comments
 (0)