Browse Source

Merge pull request #5429 from thinkyhead/rc_mention_M205

Fix compile error with LCD_I2C_VIKI
pull/1/head
Scott Lahteine 8 years ago
committed by GitHub
parent
commit
a9f64537ff
  1. 2
      Marlin/ultralcd.cpp
  2. 7
      Marlin/ultralcd.h

2
Marlin/ultralcd.cpp

@ -3154,6 +3154,8 @@ void lcd_reset_alert_level() { lcd_status_message_level = 0; }
#if (ENABLED(LCD_I2C_TYPE_MCP23017) || ENABLED(LCD_I2C_TYPE_MCP23008)) && ENABLED(DETECT_DEVICE)
bool lcd_detected() { return lcd.LcdDetected() == 1; }
#else
bool lcd_detected() { return true; }
#endif
#endif // ULTIPANEL

7
Marlin/ultralcd.h

@ -43,12 +43,7 @@
void lcd_reset_alert_level();
void lcd_kill_screen();
void kill_screen(const char* lcd_msg);
#if (ENABLED(LCD_I2C_TYPE_MCP23017) || ENABLED(LCD_I2C_TYPE_MCP23008)) && ENABLED(DETECT_DEVICE)
bool lcd_detected();
#else
inline bool lcd_detected() { return true; }
#endif
bool lcd_detected(void);
#if HAS_BUZZER
void lcd_buzz(long duration, uint16_t freq);

Loading…
Cancel
Save