avoid having the block body twice in the code. Thanks to @DRracer

This commit is contained in:
3d-gussner 2021-02-10 11:09:29 +01:00
parent e5711ea84f
commit 8bc46248f6
1 changed files with 1 additions and 10 deletions

View File

@ -6658,6 +6658,7 @@ static void lcd_main_menu()
{ {
#ifdef FANCHECK #ifdef FANCHECK
if((fan_check_error == EFCE_FIXED) || (fan_check_error == EFCE_OK)) if((fan_check_error == EFCE_FIXED) || (fan_check_error == EFCE_OK))
#endif //FANCHECK
{ {
if (is_usb_printing) if (is_usb_printing)
{ {
@ -6668,16 +6669,6 @@ static void lcd_main_menu()
MENU_ITEM_SUBMENU_P(_T(MSG_RESUME_PRINT), lcd_resume_print);////MSG_RESUME_PRINT c=18 MENU_ITEM_SUBMENU_P(_T(MSG_RESUME_PRINT), lcd_resume_print);////MSG_RESUME_PRINT c=18
} }
} }
#else
if (is_usb_printing)
{
MENU_ITEM_SUBMENU_P(_T(MSG_RESUME_PRINT), lcd_resume_usb_print);////MSG_RESUME_PRINT c=18
}
else
{
MENU_ITEM_SUBMENU_P(_T(MSG_RESUME_PRINT), lcd_resume_print);////MSG_RESUME_PRINT c=18
}
#endif //FANCHECK
} }
if(IS_SD_PRINTING || is_usb_printing || isPrintPaused) if(IS_SD_PRINTING || is_usb_printing || isPrintPaused)
{ {