|
@@ -41,10 +41,15 @@
|
41
|
41
|
void lcd_setstatuspgm(const char* message, const uint8_t level=0);
|
42
|
42
|
void lcd_setalertstatuspgm(const char* message);
|
43
|
43
|
void lcd_reset_alert_level();
|
44
|
|
- bool lcd_detected(void);
|
45
|
44
|
void lcd_kill_screen();
|
46
|
45
|
void kill_screen(const char* lcd_msg);
|
47
|
46
|
|
|
47
|
+ #if (ENABLED(LCD_I2C_TYPE_MCP23017) || ENABLED(LCD_I2C_TYPE_MCP23008)) && ENABLED(DETECT_DEVICE)
|
|
48
|
+ bool lcd_detected();
|
|
49
|
+ #else
|
|
50
|
+ inline bool lcd_detected() { return true; }
|
|
51
|
+ #endif
|
|
52
|
+
|
48
|
53
|
#if HAS_BUZZER
|
49
|
54
|
void lcd_buzz(long duration, uint16_t freq);
|
50
|
55
|
#endif
|
|
@@ -155,7 +160,7 @@
|
155
|
160
|
inline void lcd_setstatuspgm(const char* message, const uint8_t level=0) { UNUSED(message); UNUSED(level); }
|
156
|
161
|
inline void lcd_buttons_update() {}
|
157
|
162
|
inline void lcd_reset_alert_level() {}
|
158
|
|
- inline bool lcd_detected(void) { return true; }
|
|
163
|
+ inline bool lcd_detected() { return true; }
|
159
|
164
|
|
160
|
165
|
#define LCD_MESSAGEPGM(x) NOOP
|
161
|
166
|
#define LCD_ALERTMESSAGEPGM(x) NOOP
|