Remove lcd_scroll_worker from bootloader except remote displays and charcell

Removes unneeded scrolling fuctionality from bootloaders

Change-Id: Iebe308144cc11c9139399702e3dcd1a548cb9831
This commit is contained in:
William Wilgus 2017-11-06 23:30:04 +01:00 committed by Michael Giacomelli
parent 0b2f5187a3
commit 0999a22ef8
2 changed files with 4 additions and 1 deletions

View file

@ -200,7 +200,7 @@ bool LCDFN(scroll_now)(struct scrollinfo *s)
return ended;
}
#if (!defined(BOOTLOADER) && !defined(HAVE_REMOTE_LCD)) || defined(HAVE_LCD_CHARCELLS)
static void LCDFN(scroll_worker)(void)
{
int index;
@ -251,3 +251,4 @@ static void LCDFN(scroll_worker)(void)
s->start_tick += si->delay + si->ticks;
}
}
#endif /*!BOOTLOADER*/

View file

@ -185,10 +185,12 @@ static void scroll_thread(void)
while (1)
{
sleep(lcd_scroll_info.ticks);
#if !defined(BOOTLOADER) || defined(HAVE_LCD_CHARCELLS)
#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP)
if (lcd_active())
#endif
lcd_scroll_worker();
#endif /*!BOOTLOADER\HAVE_LCD_CHARCELLS*/
}
}
#endif /* HAVE_REMOTE_LCD */