Browse Source

Fix undefined lcd_tmpfan_speed on NO_LCD_MENUS (#13006)

Jiri 6 years ago
parent
commit
24fffb8d93
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      Marlin/src/lcd/ultralcd.cpp
  2. 1
    1
      Marlin/src/module/temperature.cpp

+ 1
- 1
Marlin/src/lcd/ultralcd.cpp View File

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

+ 1
- 1
Marlin/src/module/temperature.cpp View File

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

Loading…
Cancel
Save