Browse Source

Fix undefined lcd_tmpfan_speed on NO_LCD_MENUS (#13006)

pull/1/head
Jiri 6 years ago
committed by Scott Lahteine
parent
commit
24fffb8d93
  1. 2
      Marlin/src/lcd/ultralcd.cpp
  2. 2
      Marlin/src/module/temperature.cpp

2
Marlin/src/lcd/ultralcd.cpp

@ -260,7 +260,7 @@ void MarlinUI::init() {
encoderDiff = 0; encoderDiff = 0;
#endif #endif
#if HAS_TRINAMIC #if HAS_TRINAMIC && HAS_LCD_MENU
init_tmc_section(); init_tmc_section();
#endif #endif
} }

2
Marlin/src/module/temperature.cpp

@ -164,7 +164,7 @@ int16_t Temperature::current_temperature_raw[HOTENDS], // = { 0 }
if (target >= FAN_COUNT) return; if (target >= FAN_COUNT) return;
fan_speed[target] = speed; fan_speed[target] = speed;
#if ENABLED(ULTRA_LCD) #if HAS_LCD_MENU
lcd_tmpfan_speed[target] = speed; lcd_tmpfan_speed[target] = speed;
#endif #endif
} }

Loading…
Cancel
Save