Skip to content

Commit

Permalink
🚸 M306: Indicate MPC Autotune (MarlinFirmware#24949)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmjdebruijn authored and thinkyhead committed Dec 16, 2022
1 parent 0de4ec4 commit 6ea192a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Marlin/src/gcode/temp/M306.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#if ENABLED(MPCTEMP)

#include "../gcode.h"
#include "../../lcd/marlinui.h"
#include "../../module/temperature.h"

/**
Expand All @@ -42,7 +43,12 @@
*/

void GcodeSuite::M306() {
if (parser.seen_test('T')) { thermalManager.MPC_autotune(); return; }
if (parser.seen_test('T')) {
LCD_MESSAGE(MSG_MPC_AUTOTUNE);
thermalManager.MPC_autotune();
ui.reset_status();
return;
}

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

0 comments on commit 6ea192a

Please sign in to comment.