|
@@ -12,7 +12,9 @@ extern volatile bool feedmultiplychanged;
|
12
|
12
|
extern volatile int extrudemultiply;
|
13
|
13
|
|
14
|
14
|
extern long position[4];
|
|
15
|
+#ifdef SDSUPPORT
|
15
|
16
|
extern CardReader card;
|
|
17
|
+#endif
|
16
|
18
|
|
17
|
19
|
//===========================================================================
|
18
|
20
|
//=============================public variables============================
|
|
@@ -480,7 +482,11 @@ void MainMenu::showPrepare()
|
480
|
482
|
MENUITEM( lcdprintPGM(MSG_MAIN) , BLOCK;status=Main_Menu;beepshort(); ) ;
|
481
|
483
|
break;
|
482
|
484
|
case ItemP_autostart:
|
483
|
|
- MENUITEM( lcdprintPGM(MSG_AUTOSTART) , BLOCK;card.lastnr=0;card.setroot();card.checkautostart(true);beepshort(); ) ;
|
|
485
|
+ MENUITEM( lcdprintPGM(MSG_AUTOSTART) , BLOCK;
|
|
486
|
+#ifdef SDSUPPORT
|
|
487
|
+ card.lastnr=0;card.setroot();card.checkautostart(true);
|
|
488
|
+#endif
|
|
489
|
+ beepshort(); ) ;
|
484
|
490
|
break;
|
485
|
491
|
case ItemP_disstep:
|
486
|
492
|
MENUITEM( lcdprintPGM(MSG_DISABLE_STEPPERS) , BLOCK;enquecommand("M84");beepshort(); ) ;
|
|
@@ -1629,7 +1635,7 @@ void MainMenu::showControlMotion()
|
1629
|
1635
|
if(linechanging)
|
1630
|
1636
|
{
|
1631
|
1637
|
if(encoderpos<5) encoderpos=5;
|
1632
|
|
- if(encoderpos>99999) encoderpos=99999;
|
|
1638
|
+ if(encoderpos>32000) encoderpos=32000;//TODO: This is a problem, encoderpos is 16bit, but steps_per_unit for e can be wel over 800
|
1633
|
1639
|
lcd.setCursor(11,line);lcd.print(ftostr52(encoderpos/100.0));
|
1634
|
1640
|
}
|
1635
|
1641
|
|
|
@@ -1957,7 +1963,7 @@ void MainMenu::showMainMenu()
|
1957
|
1963
|
#endif
|
1958
|
1964
|
if(tune)
|
1959
|
1965
|
{
|
1960
|
|
- if(!(movesplanned() ||card.sdprinting))
|
|
1966
|
+ if(!(movesplanned() || IS_SD_PRINTING))
|
1961
|
1967
|
{
|
1962
|
1968
|
force_lcd_update=true;
|
1963
|
1969
|
tune=false;
|
|
@@ -1965,7 +1971,7 @@ void MainMenu::showMainMenu()
|
1965
|
1971
|
}
|
1966
|
1972
|
else
|
1967
|
1973
|
{
|
1968
|
|
- if(movesplanned() ||card.sdprinting)
|
|
1974
|
+ if(movesplanned() || IS_SD_PRINTING)
|
1969
|
1975
|
{
|
1970
|
1976
|
force_lcd_update=true;
|
1971
|
1977
|
tune=true;
|