瀏覽代碼

Fix function definitions for Malyan LCD

xC0000005 7 年之前
父節點
當前提交
24d23ce49b
共有 1 個檔案被更改,包括 8 行新增6 行删除
  1. 8
    6
      Marlin/src/lcd/ultralcd.h

+ 8
- 6
Marlin/src/lcd/ultralcd.h 查看文件

28
 #if ENABLED(ULTRA_LCD) || ENABLED(MALYAN_LCD)
28
 #if ENABLED(ULTRA_LCD) || ENABLED(MALYAN_LCD)
29
   void lcd_init();
29
   void lcd_init();
30
   bool lcd_detected();
30
   bool lcd_detected();
31
+  void lcd_update();
32
+  void lcd_setalertstatusPGM(const char* message);
33
+#else
34
+  inline void lcd_init() {}
35
+  inline bool lcd_detected() { return true; }
36
+  inline void lcd_update() {}
37
+  inline void lcd_setalertstatusPGM(const char* message) { UNUSED(message); }
31
 #endif
38
 #endif
32
 
39
 
33
 #if ENABLED(ULTRA_LCD)
40
 #if ENABLED(ULTRA_LCD)
52
     constexpr bool lcd_wait_for_move = false;
59
     constexpr bool lcd_wait_for_move = false;
53
   #endif
60
   #endif
54
 
61
 
55
-  void lcd_update();
56
   bool lcd_hasstatus();
62
   bool lcd_hasstatus();
57
   void lcd_setstatus(const char* message, const bool persist=false);
63
   void lcd_setstatus(const char* message, const bool persist=false);
58
   void lcd_setstatusPGM(const char* message, const int8_t level=0);
64
   void lcd_setstatusPGM(const char* message, const int8_t level=0);
230
     void wait_for_release();
236
     void wait_for_release();
231
   #endif
237
   #endif
232
 
238
 
233
-#else // no LCD
239
+#else // MALYAN_LCD or no LCD
234
 
240
 
235
   constexpr bool lcd_wait_for_move = false;
241
   constexpr bool lcd_wait_for_move = false;
236
 
242
 
237
-  inline void lcd_init() {}
238
-  inline bool lcd_detected() { return true; }
239
-  inline void lcd_update() {}
240
   inline void lcd_refresh() {}
243
   inline void lcd_refresh() {}
241
   inline void lcd_buttons_update() {}
244
   inline void lcd_buttons_update() {}
242
   inline bool lcd_hasstatus() { return false; }
245
   inline bool lcd_hasstatus() { return false; }
243
   inline void lcd_setstatus(const char* const message, const bool persist=false) { UNUSED(message); UNUSED(persist); }
246
   inline void lcd_setstatus(const char* const message, const bool persist=false) { UNUSED(message); UNUSED(persist); }
244
   inline void lcd_setstatusPGM(const char* const message, const int8_t level=0) { UNUSED(message); UNUSED(level); }
247
   inline void lcd_setstatusPGM(const char* const message, const int8_t level=0) { UNUSED(message); UNUSED(level); }
245
   inline void lcd_status_printf_P(const uint8_t level, const char * const fmt, ...) { UNUSED(level); UNUSED(fmt); }
248
   inline void lcd_status_printf_P(const uint8_t level, const char * const fmt, ...) { UNUSED(level); UNUSED(fmt); }
246
-  inline void lcd_setalertstatusPGM(const char* message) { UNUSED(message); }
247
   inline void lcd_reset_alert_level() {}
249
   inline void lcd_reset_alert_level() {}
248
   inline void lcd_reset_status() {}
250
   inline void lcd_reset_status() {}
249
 
251
 

Loading…
取消
儲存