From af644e02a151bb6d4c229cc1d4846c7ffe952135 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sun, 31 Mar 2024 16:52:39 +0100 Subject: Fix red in 5fd5f56cacdd Change-Id: Icbc6e234a2fcdd7c8e0cdd0562f49fcbdf52480b --- firmware/export/scroll_engine.h | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/firmware/export/scroll_engine.h b/firmware/export/scroll_engine.h index 2a1a510dbd..ba7cc3c4d5 100644 --- a/firmware/export/scroll_engine.h +++ b/firmware/export/scroll_engine.h @@ -38,6 +38,11 @@ extern void lcd_bidir_scroll(int threshold); extern void lcd_scroll_speed(int speed); extern void lcd_scroll_delay(int ms); +#ifdef HAVE_REMOTE_LCD +extern void lcd_remote_scroll_speed(int speed); +extern void lcd_remote_scroll_delay(int ms); +#endif + #ifdef BOOTLOADER static inline void lcd_scroll_stop(void) { @@ -62,22 +67,45 @@ static inline bool lcd_scroll_now(struct scrollinfo *scroll) (void)scroll; return false; } + +#ifdef HAVE_REMOTE_LCD +static inline void lcd_remote_scroll_stop(void) +{ +} + +static inline void lcd_remote_scroll_stop_viewport(const struct viewport *vp) +{ + (void)vp; +} + +static inline void lcd_remote_scroll_stop_viewport_rect(const struct viewport *vp, int x, int y, int width, int height) +{ + (void)vp; + (void)x; + (void)y; + (void)width; + (void)height; +} + +static inline bool lcd_remote_scroll_now(struct scrollinfo *scroll) +{ + (void)scroll; + return false; +} +#endif /* HAVE_REMOTE_LCD */ #else extern void lcd_scroll_stop(void); extern void lcd_scroll_stop_viewport(const struct viewport *vp); extern void lcd_scroll_stop_viewport_rect(const struct viewport *vp, int x, int y, int width, int height); extern bool lcd_scroll_now(struct scrollinfo *scroll); -#endif -#ifdef HAVE_REMOTE_LCD -extern void lcd_remote_scroll_speed(int speed); -extern void lcd_remote_scroll_delay(int ms); +#ifdef HAVE_REMOTE_LCD extern void lcd_remote_scroll_stop(void); extern void lcd_remote_scroll_stop_viewport(const struct viewport *vp); extern void lcd_remote_scroll_stop_viewport_rect(const struct viewport *vp, int x, int y, int width, int height); extern bool lcd_remote_scroll_now(struct scrollinfo *scroll); -#endif - +#endif /* HAVE_REMOTE_LCD */ +#endif /* BOOTLOADER */ /* internal usage, but in multiple drivers -- cgit v1.2.3