Optimise preheat menu's MENU_ITEM_BACK_P
Saves 10 bytes of flash memory
This commit is contained in:
parent
70ee06144e
commit
bd3a835516
|
|
@ -2400,14 +2400,7 @@ void lcd_generic_preheat_menu()
|
||||||
ON_MENU_LEAVE(
|
ON_MENU_LEAVE(
|
||||||
mFilamentBack();
|
mFilamentBack();
|
||||||
);
|
);
|
||||||
if (eFilamentAction == FilamentAction::Lay1Cal)
|
MENU_ITEM_BACK_P(_T(eFilamentAction == FilamentAction::Lay1Cal ? MSG_BACK : MSG_MAIN));
|
||||||
{
|
|
||||||
MENU_ITEM_BACK_P(_T(MSG_BACK));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
MENU_ITEM_BACK_P(_T(MSG_MAIN));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (farm_mode)
|
if (farm_mode)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue