chiark / gitweb /
cooldown
authorBernhard <bkubicek@x201.(none)>
Thu, 22 Dec 2011 11:02:33 +0000 (12:02 +0100)
committerBernhard <bkubicek@x201.(none)>
Thu, 22 Dec 2011 11:02:33 +0000 (12:02 +0100)
Marlin/ultralcd.pde

index 947ec3dac9677c3032d54229c358522a41c21eed..35c0c4091ac24e1273ca5ba7a3377bedc19f8277 100644 (file)
@@ -446,7 +446,7 @@ void MainMenu::showStatus()
   force_lcd_update=false;
 }
 
-enum {ItemP_exit, ItemP_autostart,ItemP_disstep,ItemP_home, ItemP_origin, ItemP_preheat, ItemP_extrude};
+enum {ItemP_exit, ItemP_autostart,ItemP_disstep,ItemP_home, ItemP_origin, ItemP_preheat, ItemP_cooldown,ItemP_extrude};
 
 //any action must not contain a ',' character anywhere, or this breaks:
 #define MENUITEM(repaint_action, click_action) \
@@ -480,7 +480,10 @@ void MainMenu::showPrepare()
       MENUITEM(  lcdprintPGM(" Set Origin")  ,  BLOCK;enquecommand("G92 X0 Y0 Z0");beepshort(); ) ;
       break;
     case ItemP_preheat:
-      MENUITEM(  lcdprintPGM(" Preheat")  ,  BLOCK;setTargetHotend0(170);beepshort(); ) ;
+      MENUITEM(  lcdprintPGM(" Preheat")  ,  BLOCK;setTargetHotend0(170);setTargetBed(70);beepshort(); ) ;
+      break;
+    case ItemP_cooldown:
+      MENUITEM(  lcdprintPGM(" Cooldown")  ,  BLOCK;setTargetHotend0(0);setTargetBed(0);beepshort(); ) ;
       break;
     case ItemP_extrude:
       MENUITEM(  lcdprintPGM(" Extrude")  ,  BLOCK;enquecommand("G92 E0");enquecommand("G1 F700 E50");beepshort(); ) ;