Browse Source

Fixed "Cooldown" Selection not reseting bed temp

- enquecommand with multiple lines "\n" doesn't work -> M140 S0 didn't
get processed. So I wrote a new func for the cooldown which uses
setTargetHotend. In addition this does return to status page after
selection.
    - Added setWatch() to preheat-functions (Temperatur sanity check
would never have worked when preheating from the lcd panel)
xifle 12 years ago
parent
commit
29bb8d7d4f
1 changed files with 12 additions and 1 deletions
  1. 12
    1
      Marlin/ultralcd.cpp

+ 12
- 1
Marlin/ultralcd.cpp View File

@@ -252,6 +252,7 @@ void lcd_preheat_pla()
252 252
     setTargetBed(plaPreheatHPBTemp);
253 253
     fanSpeed = plaPreheatFanSpeed;
254 254
     lcd_return_to_status();
255
+	setWatch();	// heater sanity check timer
255 256
 }
256 257
 
257 258
 void lcd_preheat_abs()
@@ -262,6 +263,16 @@ void lcd_preheat_abs()
262 263
     setTargetBed(absPreheatHPBTemp);
263 264
     fanSpeed = absPreheatFanSpeed;
264 265
     lcd_return_to_status();
266
+	setWatch();	// heater sanity check timer
267
+}
268
+
269
+static void lcd_cooldown()
270
+{
271
+	setTargetHotend0(0);
272
+	setTargetHotend1(0);
273
+	setTargetHotend2(0);
274
+	setTargetBed(0);
275
+	lcd_return_to_status();
265 276
 }
266 277
 
267 278
 static void lcd_tune_menu()
@@ -299,7 +310,7 @@ static void lcd_prepare_menu()
299 310
     //MENU_ITEM(gcode, MSG_SET_ORIGIN, PSTR("G92 X0 Y0 Z0"));
300 311
     MENU_ITEM(function, MSG_PREHEAT_PLA, lcd_preheat_pla);
301 312
     MENU_ITEM(function, MSG_PREHEAT_ABS, lcd_preheat_abs);
302
-    MENU_ITEM(gcode, MSG_COOLDOWN, PSTR("M104 S0\nM140 S0"));
313
+    MENU_ITEM(function, MSG_COOLDOWN, lcd_cooldown);
303 314
     MENU_ITEM(submenu, MSG_MOVE_AXIS, lcd_move_menu);
304 315
     END_MENU();
305 316
 }

Loading…
Cancel
Save