|
@@ -515,12 +515,11 @@ static void lcd_tune_menu() {
|
515
|
515
|
|
516
|
516
|
void _lcd_preheat(int endnum, const float temph, const float tempb, const int fan) {
|
517
|
517
|
if (temph > 0) setTargetHotend(temph, endnum);
|
518
|
|
- setTargetBed(tempb);
|
|
518
|
+ #if TEMP_SENSOR_BED != 0
|
|
519
|
+ setTargetBed(tempb);
|
|
520
|
+ #endif
|
519
|
521
|
fanSpeed = fan;
|
520
|
522
|
lcd_return_to_status();
|
521
|
|
- #ifdef WATCH_TEMP_PERIOD
|
522
|
|
- if (endnum >= 0) start_watching_heater(endnum);
|
523
|
|
- #endif
|
524
|
523
|
}
|
525
|
524
|
void lcd_preheat_pla0() { _lcd_preheat(0, plaPreheatHotendTemp, plaPreheatHPBTemp, plaPreheatFanSpeed); }
|
526
|
525
|
void lcd_preheat_abs0() { _lcd_preheat(0, absPreheatHotendTemp, absPreheatHPBTemp, absPreheatFanSpeed); }
|
|
@@ -602,11 +601,7 @@ void lcd_preheat_abs0() { _lcd_preheat(0, absPreheatHotendTemp, absPreheatHPBTem
|
602
|
601
|
#endif // more than one temperature sensor present
|
603
|
602
|
|
604
|
603
|
void lcd_cooldown() {
|
605
|
|
- setTargetHotend0(0);
|
606
|
|
- setTargetHotend1(0);
|
607
|
|
- setTargetHotend2(0);
|
608
|
|
- setTargetHotend3(0);
|
609
|
|
- setTargetBed(0);
|
|
604
|
+ disable_all_heaters();
|
610
|
605
|
fanSpeed = 0;
|
611
|
606
|
lcd_return_to_status();
|
612
|
607
|
}
|