diff --git a/Marlin/src/lcd/menu/menu_advanced.cpp b/Marlin/src/lcd/menu/menu_advanced.cpp index f78b8a9f68ee..a2769908959d 100644 --- a/Marlin/src/lcd/menu/menu_advanced.cpp +++ b/Marlin/src/lcd/menu/menu_advanced.cpp @@ -253,6 +253,8 @@ void menu_backlash(); // #if SHOW_MENU_ADVANCED_TEMPERATURE + #define HAS_MULTI_HOTEND 1 + #if ENABLED(MPC_EDIT_MENU) #define MPC_EDIT_DEFS(N) \ MPC_t &c = thermalManager.temp_hotend[N].constants; \ @@ -351,7 +353,7 @@ void menu_backlash(); #if ENABLED(MPC_INCLUDE_FAN) #define MPC_EDIT_ITEMS(N) \ _MPC_EDIT_ITEMS(N); \ - EDIT_ITEM_FAST_N(float43, N, MSG_MPC_AMBIENT_XFER_COEFF_FAN255_E, &editable.decimal, 0, 1, []{ \ + EDIT_ITEM_FAST_N(float43, N, MSG_MPC_AMBIENT_XFER_COEFF_FAN255_E, &editable.decimal, 0, 1, [&]{ \ c.fan255_adjustment = editable.decimal - c.ambient_xfer_coeff_fan0; \ }) #else