Skip to content

Commit

Permalink
Update ultralcd_DOGM.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludy87 committed Sep 3, 2019
1 parent 0a9fbd6 commit 441b253
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Marlin/src/lcd/dogm/ultralcd_DOGM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ bool MarlinUI::detected() { return true; }
};

#if DISABLED(BOOT_MARLIN_LOGO_ANIMATED)
draw_bootscreen_bmp(start_bmp);
u8g.firstPage();
do { draw_bootscreen_bmp(start_bmp); } while (u8g.nextPage());
#else
constexpr millis_t d = MARLIN_BOOTSCREEN_FRAME_TIME;
LOOP_L_N(f, COUNT(marlin_bootscreen_animation)) {
Expand All @@ -219,13 +220,9 @@ bool MarlinUI::detected() { return true; }
#ifndef BOOTSCREEN_TIMEOUT
#define BOOTSCREEN_TIMEOUT 2500
#endif
for (uint8_t q = 1; q--;) {
#if DISABLED(BOOT_MARLIN_LOGO_ANIMATED)
u8g.firstPage();
do { draw_marlin_bootscreen(q == 0); } while (u8g.nextPage());
#else
draw_marlin_bootscreen(q == 0);
#endif
constexpr int one_two_part = ((LCD_PIXEL_HEIGHT) - (START_BMPHEIGHT) -10) < ((MENU_FONT_ASCENT) * 2) ? 2 : 1;
for (uint8_t q = one_two_part; q--;) {
draw_marlin_bootscreen(q == 0);
safe_delay((BOOTSCREEN_TIMEOUT) / 2);
}
}
Expand Down

0 comments on commit 441b253

Please sign in to comment.