Fix undefined lcd_tmpfan_speed on NO_LCD_MENUS (#13006)

This commit is contained in:
Jiri 2019-01-24 23:34:40 +01:00 committed by Scott Lahteine
parent 8f9b246d0e
commit 24fffb8d93
2 changed files with 2 additions and 2 deletions

View file

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

View file

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