🩹 Fix lcd_preheat compile

This commit is contained in:
Scott Lahteine
2022-07-26 21:15:44 -05:00
parent d816c1b38d
commit 90b5645223
6 changed files with 38 additions and 30 deletions

View File

@@ -65,9 +65,11 @@ static void _change_filament_with_temp(const uint16_t celsius) {
queue.inject(cmd);
}
static void _change_filament_with_preset() {
_change_filament_with_temp(ui.material_preset[MenuItemBase::itemIndex].hotend_temp);
}
#if HAS_PREHEAT
static void _change_filament_with_preset() {
_change_filament_with_temp(ui.material_preset[MenuItemBase::itemIndex].hotend_temp);
}
#endif
static void _change_filament_with_custom() {
_change_filament_with_temp(thermalManager.degTargetHotend(MenuItemBase::itemIndex));