Fix compile for Malyan LCD
Based on #10498 Co-Authored-By: xC0000005 <xc0000005@users.noreply.github.com>
This commit is contained in:
parent
b19d8182c1
commit
0764981aa1
@ -28,6 +28,13 @@
|
|||||||
#if ENABLED(ULTRA_LCD) || ENABLED(MALYAN_LCD)
|
#if ENABLED(ULTRA_LCD) || ENABLED(MALYAN_LCD)
|
||||||
void lcd_init();
|
void lcd_init();
|
||||||
bool lcd_detected();
|
bool lcd_detected();
|
||||||
|
void lcd_update();
|
||||||
|
void lcd_setalertstatusPGM(const char* message);
|
||||||
|
#else
|
||||||
|
inline void lcd_init() {}
|
||||||
|
inline bool lcd_detected() { return true; }
|
||||||
|
inline void lcd_update() {}
|
||||||
|
inline void lcd_setalertstatusPGM(const char* message) { UNUSED(message); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(ULTRA_LCD)
|
#if ENABLED(ULTRA_LCD)
|
||||||
@ -50,7 +57,6 @@
|
|||||||
|
|
||||||
int16_t lcd_strlen(const char* s);
|
int16_t lcd_strlen(const char* s);
|
||||||
int16_t lcd_strlen_P(const char* s);
|
int16_t lcd_strlen_P(const char* s);
|
||||||
void lcd_update();
|
|
||||||
bool lcd_hasstatus();
|
bool lcd_hasstatus();
|
||||||
void lcd_setstatus(const char* message, const bool persist=false);
|
void lcd_setstatus(const char* message, const bool persist=false);
|
||||||
void lcd_setstatusPGM(const char* message, const int8_t level=0);
|
void lcd_setstatusPGM(const char* message, const int8_t level=0);
|
||||||
@ -228,20 +234,16 @@
|
|||||||
void wait_for_release();
|
void wait_for_release();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else // no LCD
|
#else // MALYAN_LCD or no LCD
|
||||||
|
|
||||||
constexpr bool lcd_wait_for_move = false;
|
constexpr bool lcd_wait_for_move = false;
|
||||||
|
|
||||||
inline void lcd_init() {}
|
|
||||||
inline bool lcd_detected() { return true; }
|
|
||||||
inline void lcd_update() {}
|
|
||||||
inline void lcd_refresh() {}
|
inline void lcd_refresh() {}
|
||||||
inline void lcd_buttons_update() {}
|
inline void lcd_buttons_update() {}
|
||||||
inline bool lcd_hasstatus() { return false; }
|
inline bool lcd_hasstatus() { return false; }
|
||||||
inline void lcd_setstatus(const char* const message, const bool persist=false) { UNUSED(message); UNUSED(persist); }
|
inline void lcd_setstatus(const char* const message, const bool persist=false) { UNUSED(message); UNUSED(persist); }
|
||||||
inline void lcd_setstatusPGM(const char* const message, const int8_t level=0) { UNUSED(message); UNUSED(level); }
|
inline void lcd_setstatusPGM(const char* const message, const int8_t level=0) { UNUSED(message); UNUSED(level); }
|
||||||
inline void lcd_status_printf_P(const uint8_t level, const char * const fmt, ...) { UNUSED(level); UNUSED(fmt); }
|
inline void lcd_status_printf_P(const uint8_t level, const char * const fmt, ...) { UNUSED(level); UNUSED(fmt); }
|
||||||
inline void lcd_setalertstatusPGM(const char* message) { UNUSED(message); }
|
|
||||||
inline void lcd_reset_alert_level() {}
|
inline void lcd_reset_alert_level() {}
|
||||||
inline void lcd_reset_status() {}
|
inline void lcd_reset_status() {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user