summaryrefslogtreecommitdiffstats
path: root/firmware/scroll_engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/scroll_engine.c')
-rw-r--r--firmware/scroll_engine.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/scroll_engine.c b/firmware/scroll_engine.c
index b584345a9a..91f9d1f868 100644
--- a/firmware/scroll_engine.c
+++ b/firmware/scroll_engine.c
@@ -52,7 +52,6 @@ static const char scroll_tick_table[18] = {
};
static void scroll_thread(void);
-static char scroll_stack[DEFAULT_STACK_SIZE*3];
static const char scroll_name[] = "scroll";
#include "drivers/lcd-scroll.c"
@@ -195,8 +194,11 @@ static void scroll_thread(void)
}
#endif /* HAVE_REMOTE_LCD */
+
+#ifndef BOOTLOADER
void scroll_init(void)
{
+ static char scroll_stack[DEFAULT_STACK_SIZE*3];
#ifdef HAVE_REMOTE_LCD
queue_init(&scroll_queue, true);
#endif
@@ -205,3 +207,9 @@ void scroll_init(void)
IF_PRIO(, PRIORITY_USER_INTERFACE)
IF_COP(, CPU));
}
+#else
+void scroll_init(void)
+{
+ /* DUMMY */
+}
+#endif /* ndef BOOTLOADER*/