Merge pull request #8181 from thinkyhead/bf2_fix_bootscreen_repeat
[2.0.x] Only show custom bootscreen once
This commit is contained in:
commit
cae8703e0d
1 changed files with 9 additions and 7 deletions
|
@ -278,6 +278,8 @@ void lcd_printPGM_utf(const char *str, uint8_t n=LCD_WIDTH) {
|
||||||
|
|
||||||
#if ENABLED(SHOW_BOOTSCREEN)
|
#if ENABLED(SHOW_BOOTSCREEN)
|
||||||
|
|
||||||
|
bool show_bootscreen = true;
|
||||||
|
|
||||||
#if ENABLED(SHOW_CUSTOM_BOOTSCREEN)
|
#if ENABLED(SHOW_CUSTOM_BOOTSCREEN)
|
||||||
|
|
||||||
void lcd_custom_bootscreen() {
|
void lcd_custom_bootscreen() {
|
||||||
|
@ -294,8 +296,6 @@ void lcd_printPGM_utf(const char *str, uint8_t n=LCD_WIDTH) {
|
||||||
|
|
||||||
void lcd_bootscreen() {
|
void lcd_bootscreen() {
|
||||||
|
|
||||||
static bool show_bootscreen = true;
|
|
||||||
|
|
||||||
if (show_bootscreen) {
|
if (show_bootscreen) {
|
||||||
show_bootscreen = false;
|
show_bootscreen = false;
|
||||||
|
|
||||||
|
@ -353,11 +353,13 @@ static void lcd_implementation_init() {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(SHOW_BOOTSCREEN)
|
#if ENABLED(SHOW_BOOTSCREEN)
|
||||||
|
if (show_bootscreen) {
|
||||||
#if ENABLED(SHOW_CUSTOM_BOOTSCREEN)
|
#if ENABLED(SHOW_CUSTOM_BOOTSCREEN)
|
||||||
lcd_custom_bootscreen();
|
lcd_custom_bootscreen();
|
||||||
#else
|
#else
|
||||||
lcd_bootscreen();
|
lcd_bootscreen();
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue