|
@@ -437,7 +437,7 @@ void MainMenu::showStatus()
|
437
|
437
|
force_lcd_update=false;
|
438
|
438
|
}
|
439
|
439
|
|
440
|
|
-enum {ItemP_exit, ItemP_home, ItemP_origin, ItemP_preheat, ItemP_extrude, ItemP_disstep};
|
|
440
|
+enum {ItemP_exit, ItemP_autostart,ItemP_disstep,ItemP_home, ItemP_origin, ItemP_preheat, ItemP_extrude};
|
441
|
441
|
|
442
|
442
|
//any action must not contain a ',' character anywhere, or this breaks:
|
443
|
443
|
#define MENUITEM(repaint_action, click_action) \
|
|
@@ -458,6 +458,12 @@ void MainMenu::showPrepare()
|
458
|
458
|
case ItemP_exit:
|
459
|
459
|
MENUITEM( lcdprintPGM(" Main \003") , BLOCK;status=Main_Menu;beepshort(); ) ;
|
460
|
460
|
break;
|
|
461
|
+ case ItemP_autostart:
|
|
462
|
+ MENUITEM( lcdprintPGM(" Autostart") , BLOCK;card.lastnr=0;card.checkautostart(true);beepshort(); ) ;
|
|
463
|
+ break;
|
|
464
|
+ case ItemP_disstep:
|
|
465
|
+ MENUITEM( lcdprintPGM(" Disable Steppers") , BLOCK;enquecommand("M84");beepshort(); ) ;
|
|
466
|
+ break;
|
461
|
467
|
case ItemP_home:
|
462
|
468
|
MENUITEM( lcdprintPGM(" Auto Home") , BLOCK;enquecommand("G28 X-105 Y-105 Z0");beepshort(); ) ;
|
463
|
469
|
break;
|
|
@@ -470,15 +476,14 @@ void MainMenu::showPrepare()
|
470
|
476
|
case ItemP_extrude:
|
471
|
477
|
MENUITEM( lcdprintPGM(" Extrude") , BLOCK;enquecommand("G92 E0");enquecommand("G1 F700 E50");beepshort(); ) ;
|
472
|
478
|
break;
|
473
|
|
- case ItemP_disstep:
|
474
|
|
- MENUITEM( lcdprintPGM(" Disable Steppers") , BLOCK;enquecommand("M84");beepshort(); ) ;
|
475
|
|
- break;
|
|
479
|
+
|
|
480
|
+
|
476
|
481
|
default:
|
477
|
482
|
break;
|
478
|
483
|
}
|
479
|
484
|
line++;
|
480
|
485
|
}
|
481
|
|
- updateActiveLines(ItemP_disstep,encoderpos);
|
|
486
|
+ updateActiveLines(ItemP_extrude,encoderpos);
|
482
|
487
|
}
|
483
|
488
|
|
484
|
489
|
enum {ItemT_exit,ItemT_speed,ItemT_flow,ItemT_nozzle,ItemT_fan};
|