From b985e4a13455f731f8c203d01b5190a52c8a144f Mon Sep 17 00:00:00 2001 From: Erik van der Zalm Date: Thu, 15 Mar 2012 22:29:31 +0100 Subject: [PATCH] Fixed compile errors in ultralcd when no ultra_lcd is selected. --- Marlin/ultralcd.pde | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Marlin/ultralcd.pde b/Marlin/ultralcd.pde index 4629e2e67..c1214b59f 100644 --- a/Marlin/ultralcd.pde +++ b/Marlin/ultralcd.pde @@ -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