Pārlūkot izejas kodu

Merge pull request #474 from xifle/Marlin_v1

Fixed "Cooldown" Selection not reseting bed temp
ErikZalm 11 gadus atpakaļ
vecāks
revīzija
c9cf2174dd
1 mainītis faili ar 12 papildinājumiem un 1 dzēšanām
  1. 12
    1
      Marlin/ultralcd.cpp

+ 12
- 1
Marlin/ultralcd.cpp Parādīt failu

@@ -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
 }

Notiek ielāde…
Atcelt
Saglabāt