Merge pull request #3498 from thinkyhead/rc_preheat_abs_both_3489

Fix bug in lcd_preheat_pla0123 and lcd_preheat_abs0123
This commit is contained in:
Scott Lahteine 2016-04-14 16:57:38 -07:00
commit e08dd0d831

View File

@ -789,16 +789,20 @@ void _lcd_preheat(int endnum, const float temph, const float tempb, const int fa
#endif #endif
void lcd_preheat_pla0123() { void lcd_preheat_pla0123() {
#if EXTRUDERS > 1
setTargetHotend0(plaPreheatHotendTemp); setTargetHotend0(plaPreheatHotendTemp);
setTargetHotend1(plaPreheatHotendTemp); setTargetHotend1(plaPreheatHotendTemp);
setTargetHotend2(plaPreheatHotendTemp); setTargetHotend2(plaPreheatHotendTemp);
_lcd_preheat(3, plaPreheatHotendTemp, plaPreheatHPBTemp, plaPreheatFanSpeed); #endif
_lcd_preheat(EXTRUDERS - 1, plaPreheatHotendTemp, plaPreheatHPBTemp, plaPreheatFanSpeed);
} }
void lcd_preheat_abs0123() { void lcd_preheat_abs0123() {
#if EXTRUDERS > 1
setTargetHotend0(absPreheatHotendTemp); setTargetHotend0(absPreheatHotendTemp);
setTargetHotend1(absPreheatHotendTemp); setTargetHotend1(absPreheatHotendTemp);
setTargetHotend2(absPreheatHotendTemp); setTargetHotend2(absPreheatHotendTemp);
_lcd_preheat(3, absPreheatHotendTemp, absPreheatHPBTemp, absPreheatFanSpeed); #endif
_lcd_preheat(EXTRUDERS - 1, absPreheatHotendTemp, absPreheatHPBTemp, absPreheatFanSpeed);
} }
#endif // EXTRUDERS > 1 #endif // EXTRUDERS > 1