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
     encoderDiff = 0;
260
     encoderDiff = 0;
261
   #endif
261
   #endif
262
 
262
 
263
-  #if HAS_TRINAMIC
263
+  #if HAS_TRINAMIC && HAS_LCD_MENU
264
     init_tmc_section();
264
     init_tmc_section();
265
   #endif
265
   #endif
266
 }
266
 }

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

164
     if (target >= FAN_COUNT) return;
164
     if (target >= FAN_COUNT) return;
165
 
165
 
166
     fan_speed[target] = speed;
166
     fan_speed[target] = speed;
167
-    #if ENABLED(ULTRA_LCD)
167
+    #if HAS_LCD_MENU
168
       lcd_tmpfan_speed[target] = speed;
168
       lcd_tmpfan_speed[target] = speed;
169
     #endif
169
     #endif
170
   }
170
   }

Loading…
Cancel
Save