Skip to content

Commit bc07c95

Browse files
zelepsthinkyhead
authored andcommitted
🐛 Fix MPC compile (MarlinFirmware#24049)
Followup to MarlinFirmware#23984, MarlinFirmware#23751 Co-authored-by: Scott Lahteine <[email protected]>
1 parent d8300b7 commit bc07c95

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Marlin/src/gcode/temp/M306.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ void GcodeSuite::M306_report(const bool forReplay/*=true*/) {
6969
SERIAL_ECHOPAIR_F(" C", constants.block_heat_capacity, 2);
7070
SERIAL_ECHOPAIR_F(" R", constants.sensor_responsiveness, 4);
7171
SERIAL_ECHOPAIR_F(" A", constants.ambient_xfer_coeff_fan0, 4);
72-
SERIAL_ECHOLNPAIR_F(" F", constants.ambient_xfer_coeff_fan0 + constants.fan255_adjustment, 4);
72+
#if ENABLED(MPC_INCLUDE_FAN)
73+
SERIAL_ECHOLNPAIR_F(" F", constants.ambient_xfer_coeff_fan0 + constants.fan255_adjustment, 4);
74+
#endif
7375
}
7476
}
7577

Marlin/src/lcd/menu/menu_advanced.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ void menu_backlash();
366366
MPC_EDIT_ITEMS(e);
367367
END_MENU();
368368
};
369-
#define MPC_ENTRY(N) SUBMENU_N(N, MSG_MPC_EDIT, []{ mpc_edit_hotend(MenuItemBase::itemIndex); });
369+
#define MPC_ENTRY(N) SUBMENU_N(N, MSG_MPC_EDIT, [&]{ mpc_edit_hotend(MenuItemBase::itemIndex); });
370370
#else
371371
#define MPC_ENTRY MPC_EDIT_ITEMS
372372
#endif

buildroot/tests/BIGTREE_GTR_V1_0

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ opt_set MOTHERBOARD BOARD_BTT_GTR_V1_0 SERIAL_PORT -1 \
3838
MPC_SENSOR_RESPONSIVENESS '{ 0.22f, 0.22f, 0.22f }' \
3939
MPC_AMBIENT_XFER_COEFF '{ 0.068f, 0.068f, 0.068f }' \
4040
MPC_AMBIENT_XFER_COEFF_FAN255 '{ 0.097f, 0.097f, 0.097f }'
41-
opt_enable SWITCHING_TOOLHEAD TOOL_SENSOR MPCTEMP
41+
opt_enable SWITCHING_TOOLHEAD TOOL_SENSOR MPCTEMP MPC_EDIT_MENU MPC_AUTOTUNE_MENU
4242
opt_disable PIDTEMP
4343
exec_test $1 $2 "BigTreeTech GTR | MPC | Switching Toolhead | Tool Sensors" "$3"
4444

0 commit comments

Comments
 (0)