From 70f5f72bbbb7354046cd4f1f463c71c1f67e9439 Mon Sep 17 00:00:00 2001 From: John Lagonikas Date: Wed, 20 Apr 2022 11:33:23 +0300 Subject: [PATCH] Compilation error --- Marlin/src/lcd/menu/menu_advanced.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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