🐛 Fix MPC compile (#24049)

Followup to #23984, #23751

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
John Lagonikas
2022-04-18 07:56:52 +03:00
committed by GitHub
parent 2ee39b62f3
commit c58c5b09ab
3 changed files with 5 additions and 3 deletions

View File

@@ -366,7 +366,7 @@ void menu_backlash();
MPC_EDIT_ITEMS(e);
END_MENU();
};
#define MPC_ENTRY(N) SUBMENU_N(N, MSG_MPC_EDIT, []{ mpc_edit_hotend(MenuItemBase::itemIndex); });
#define MPC_ENTRY(N) SUBMENU_N(N, MSG_MPC_EDIT, [&]{ mpc_edit_hotend(MenuItemBase::itemIndex); });
#else
#define MPC_ENTRY MPC_EDIT_ITEMS
#endif