Optimise preheat menu's MENU_ITEM_BACK_P

Saves 10 bytes of flash memory
This commit is contained in:
Guðni Már Gilbert 2022-02-12 14:17:11 +00:00
parent 70ee06144e
commit bd3a835516
1 changed files with 1 additions and 8 deletions

View File

@ -2400,14 +2400,7 @@ void lcd_generic_preheat_menu()
ON_MENU_LEAVE(
mFilamentBack();
);
if (eFilamentAction == FilamentAction::Lay1Cal)
{
MENU_ITEM_BACK_P(_T(MSG_BACK));
}
else
{
MENU_ITEM_BACK_P(_T(MSG_MAIN));
}
MENU_ITEM_BACK_P(_T(eFilamentAction == FilamentAction::Lay1Cal ? MSG_BACK : MSG_MAIN));
}
if (farm_mode)
{