Clean up UI declarations, apply TERN_
This commit is contained in:
@ -273,7 +273,16 @@ public:
|
||||
|
||||
// LCD implementations
|
||||
static void clear_lcd();
|
||||
static void init_lcd();
|
||||
|
||||
#if HAS_SPI_LCD
|
||||
static bool detected();
|
||||
static void init_lcd();
|
||||
FORCE_INLINE static void refresh() { refresh(LCDVIEW_CLEAR_CALL_REDRAW); }
|
||||
#else
|
||||
static inline bool detected() { return true; }
|
||||
static inline void init_lcd() {}
|
||||
static inline void refresh() {}
|
||||
#endif
|
||||
|
||||
#if HAS_DISPLAY
|
||||
|
||||
@ -332,12 +341,9 @@ public:
|
||||
|
||||
static millis_t next_button_update_ms;
|
||||
|
||||
static bool detected();
|
||||
|
||||
static LCDViewAction lcdDrawUpdate;
|
||||
FORCE_INLINE static bool should_draw() { return bool(lcdDrawUpdate); }
|
||||
FORCE_INLINE static void refresh(const LCDViewAction type) { lcdDrawUpdate = type; }
|
||||
FORCE_INLINE static void refresh() { refresh(LCDVIEW_CLEAR_CALL_REDRAW); }
|
||||
|
||||
#if ENABLED(SHOW_CUSTOM_BOOTSCREEN)
|
||||
static void draw_custom_bootscreen(const uint8_t frame=0);
|
||||
@ -403,8 +409,6 @@ public:
|
||||
|
||||
static void status_screen();
|
||||
|
||||
#else
|
||||
static void refresh() {}
|
||||
#endif
|
||||
|
||||
static bool get_blink();
|
||||
@ -418,13 +422,12 @@ public:
|
||||
#else // No LCD
|
||||
|
||||
// Send status to host as a notification
|
||||
void set_status(const char* message, const bool=false);
|
||||
void set_status_P(PGM_P message, const int8_t=0);
|
||||
void status_printf_P(const uint8_t, PGM_P message, ...);
|
||||
static void set_status(const char* message, const bool=false);
|
||||
static void set_status_P(PGM_P message, const int8_t=0);
|
||||
static void status_printf_P(const uint8_t, PGM_P message, ...);
|
||||
|
||||
static inline void init() {}
|
||||
static inline void update() {}
|
||||
static inline void refresh() {}
|
||||
static inline void return_to_status() {}
|
||||
static inline void set_alert_status_P(PGM_P const) {}
|
||||
static inline void reset_status(const bool=false) {}
|
||||
|
Reference in New Issue
Block a user