Apply more HAS_HOTEND

This commit is contained in:
Scott Lahteine
2020-04-27 22:35:25 -05:00
parent 94291eb59f
commit 01c646a892
9 changed files with 34 additions and 66 deletions

View File

@ -799,7 +799,7 @@ void MarlinSettings::postprocess() {
{
_FIELD_TEST(ui_preheat_hotend_temp);
#if HOTENDS && HAS_LCD_MENU
#if HAS_HOTEND && HAS_LCD_MENU
const int16_t (&ui_preheat_hotend_temp)[2] = ui.preheat_hotend_temp,
(&ui_preheat_bed_temp)[2] = ui.preheat_bed_temp;
const uint8_t (&ui_preheat_fan_speed)[2] = ui.preheat_fan_speed;
@ -1649,7 +1649,7 @@ void MarlinSettings::postprocess() {
{
_FIELD_TEST(ui_preheat_hotend_temp);
#if HOTENDS && HAS_LCD_MENU
#if HAS_HOTEND && HAS_LCD_MENU
int16_t (&ui_preheat_hotend_temp)[2] = ui.preheat_hotend_temp,
(&ui_preheat_bed_temp)[2] = ui.preheat_bed_temp;
uint8_t (&ui_preheat_fan_speed)[2] = ui.preheat_fan_speed;
@ -2557,7 +2557,7 @@ void MarlinSettings::reset() {
// Preheat parameters
//
#if HOTENDS && HAS_LCD_MENU
#if HAS_HOTEND && HAS_LCD_MENU
ui.preheat_hotend_temp[0] = PREHEAT_1_TEMP_HOTEND;
ui.preheat_hotend_temp[1] = PREHEAT_2_TEMP_HOTEND;
ui.preheat_bed_temp[0] = PREHEAT_1_TEMP_BED;
@ -3077,7 +3077,7 @@ void MarlinSettings::reset() {
#endif // [XYZ]_DUAL_ENDSTOPS
#if HOTENDS && HAS_LCD_MENU
#if HAS_HOTEND && HAS_LCD_MENU
CONFIG_ECHO_HEADING("Material heatup parameters:");
LOOP_L_N(i, COUNT(ui.preheat_hotend_temp)) {

View File

@ -2386,7 +2386,7 @@ void Temperature::tick() {
#if DISABLED(SLOW_PWM_HEATERS)
#if HOTENDS || HAS_HEATED_BED || HAS_HEATED_CHAMBER
#if HAS_HOTEND || HAS_HEATED_BED || HAS_HEATED_CHAMBER
constexpr uint8_t pwm_mask =
#if ENABLED(SOFT_PWM_DITHER)
_BV(SOFT_PWM_SCALE) - 1
@ -2931,7 +2931,7 @@ void Temperature::tick() {
#endif // AUTO_REPORT_TEMPERATURES
#if HOTENDS && HAS_DISPLAY
#if HAS_HOTEND && HAS_DISPLAY
void Temperature::set_heating_message(const uint8_t e) {
const bool heating = isHeatingHotend(e);
ui.status_printf_P(0,