Browse Source

Define lcd_hasstatus for no lcd also

Scott Lahteine 9 years ago
parent
commit
0d8c00d3f6
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      Marlin/ultralcd.h

+ 3
- 2
Marlin/ultralcd.h View File

101
 #else //no LCD
101
 #else //no LCD
102
   FORCE_INLINE void lcd_update() {}
102
   FORCE_INLINE void lcd_update() {}
103
   FORCE_INLINE void lcd_init() {}
103
   FORCE_INLINE void lcd_init() {}
104
+  FORCE_INLINE bool lcd_hasstatus() { return false; };
104
   FORCE_INLINE void lcd_setstatus(const char* message, const bool persist=false) {}
105
   FORCE_INLINE void lcd_setstatus(const char* message, const bool persist=false) {}
105
   FORCE_INLINE void lcd_setstatuspgm(const char* message, const uint8_t level=0) {}
106
   FORCE_INLINE void lcd_setstatuspgm(const char* message, const uint8_t level=0) {}
106
   FORCE_INLINE void lcd_buttons_update() {}
107
   FORCE_INLINE void lcd_buttons_update() {}
108
   FORCE_INLINE void lcd_buzz(long duration,uint16_t freq) {}
109
   FORCE_INLINE void lcd_buzz(long duration,uint16_t freq) {}
109
   FORCE_INLINE bool lcd_detected(void) { return true; }
110
   FORCE_INLINE bool lcd_detected(void) { return true; }
110
 
111
 
111
-  #define LCD_MESSAGEPGM(x) 
112
-  #define LCD_ALERTMESSAGEPGM(x) 
112
+  #define LCD_MESSAGEPGM(x) do{}while(0)
113
+  #define LCD_ALERTMESSAGEPGM(x) do{}while(0)
113
 
114
 
114
 #endif //ULTRA_LCD
115
 #endif //ULTRA_LCD
115
 
116
 

Loading…
Cancel
Save