Fixed compile errors in ultralcd when no ultra_lcd is selected.

This commit is contained in:
Erik van der Zalm 2012-03-15 22:29:31 +01:00
parent 2e749d60c3
commit b985e4a134

View File

@ -414,7 +414,7 @@ void MainMenu::showStatus()
lcd.print(" ");
messagetext[0]='\0';
}
#ifdef SDSUPPORT
static uint8_t oldpercent=101;
uint8_t percent=card.percentDone();
if(oldpercent!=percent ||force_lcd_update)
@ -423,7 +423,7 @@ void MainMenu::showStatus()
lcd.print(itostr3((int)percent));
lcdprintPGM("%SD");
}
#endif
#else //smaller LCDS----------------------------------
static int olddegHotEnd0=-1;
static int oldtargetHotEnd0=-1;
@ -478,6 +478,7 @@ enum {ItemP_exit, ItemP_autostart,ItemP_disstep,ItemP_home, ItemP_origin, ItemP_
void MainMenu::showPrepare()
{
#ifdef ULTIPANEL
uint8_t line=0;
clearIfNecessary();
for(int8_t i=lineoffset;i<lineoffset+LCD_HEIGHT;i++)
@ -533,6 +534,7 @@ void MainMenu::showPrepare()
line++;
}
updateActiveLines(ItemP_move,encoderpos);
#endif
}
enum {
@ -1981,6 +1983,7 @@ void MainMenu::showSD()
#endif
}
enum {ItemM_watch, ItemM_prepare, ItemM_control, ItemM_file };
void MainMenu::showMainMenu()
{