chiark / gitweb /
Fixed compile errors in ultralcd when no ultra_lcd is selected.
authorErik van der Zalm <erik@vdzalm.eu>
Thu, 15 Mar 2012 21:29:31 +0000 (22:29 +0100)
committerErik van der Zalm <erik@vdzalm.eu>
Thu, 15 Mar 2012 21:29:31 +0000 (22:29 +0100)
Marlin/ultralcd.pde

index 4629e2e67fab32abccb90b422de50b522b0b3ecc..c1214b59f0407a571e12cec12ad6acab0933241f 100644 (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()
 {