Kaynağa Gözat

Bugfix (#7265)

Fix compile error when UBL is enabled but there is no LCD Panel.
Tannoo 7 yıl önce
ebeveyn
işleme
e927941c06
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2
    2
      Marlin/stepper.cpp

+ 2
- 2
Marlin/stepper.cpp Dosyayı Görüntüle

@@ -62,7 +62,7 @@ Stepper stepper; // Singleton
62 62
 
63 63
 // public:
64 64
 
65
-#if ENABLED(AUTO_BED_LEVELING_UBL)
65
+#if ENABLED(AUTO_BED_LEVELING_UBL) && ENABLED(ULTIPANEL)
66 66
   extern bool ubl_lcd_map_control;
67 67
 #endif
68 68
 
@@ -1285,7 +1285,7 @@ void Stepper::finish_and_disable() {
1285 1285
 }
1286 1286
 
1287 1287
 void Stepper::quick_stop() {
1288
-  #if ENABLED(AUTO_BED_LEVELING_UBL)
1288
+  #if ENABLED(AUTO_BED_LEVELING_UBL) && ENABLED(ULTIPANEL)
1289 1289
     if (!ubl_lcd_map_control)
1290 1290
       cleaning_buffer_counter = 5000;
1291 1291
   #else

Loading…
İptal
Kaydet