Bernhard 12 years ago
parent
commit
6735025428
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      Marlin/ultralcd.pde

+ 5
- 2
Marlin/ultralcd.pde View File

446
   force_lcd_update=false;
446
   force_lcd_update=false;
447
 }
447
 }
448
 
448
 
449
-enum {ItemP_exit, ItemP_autostart,ItemP_disstep,ItemP_home, ItemP_origin, ItemP_preheat, ItemP_extrude};
449
+enum {ItemP_exit, ItemP_autostart,ItemP_disstep,ItemP_home, ItemP_origin, ItemP_preheat, ItemP_cooldown,ItemP_extrude};
450
 
450
 
451
 //any action must not contain a ',' character anywhere, or this breaks:
451
 //any action must not contain a ',' character anywhere, or this breaks:
452
 #define MENUITEM(repaint_action, click_action) \
452
 #define MENUITEM(repaint_action, click_action) \
480
       MENUITEM(  lcdprintPGM(" Set Origin")  ,  BLOCK;enquecommand("G92 X0 Y0 Z0");beepshort(); ) ;
480
       MENUITEM(  lcdprintPGM(" Set Origin")  ,  BLOCK;enquecommand("G92 X0 Y0 Z0");beepshort(); ) ;
481
       break;
481
       break;
482
     case ItemP_preheat:
482
     case ItemP_preheat:
483
-      MENUITEM(  lcdprintPGM(" Preheat")  ,  BLOCK;setTargetHotend0(170);beepshort(); ) ;
483
+      MENUITEM(  lcdprintPGM(" Preheat")  ,  BLOCK;setTargetHotend0(170);setTargetBed(70);beepshort(); ) ;
484
+      break;
485
+    case ItemP_cooldown:
486
+      MENUITEM(  lcdprintPGM(" Cooldown")  ,  BLOCK;setTargetHotend0(0);setTargetBed(0);beepshort(); ) ;
484
       break;
487
       break;
485
     case ItemP_extrude:
488
     case ItemP_extrude:
486
       MENUITEM(  lcdprintPGM(" Extrude")  ,  BLOCK;enquecommand("G92 E0");enquecommand("G1 F700 E50");beepshort(); ) ;
489
       MENUITEM(  lcdprintPGM(" Extrude")  ,  BLOCK;enquecommand("G92 E0");enquecommand("G1 F700 E50");beepshort(); ) ;

Loading…
Cancel
Save