Some cleanup around 'lcd_bootscreen()' and 'lcd_kill_screen()'
Move 'lcd_bootscreen()' from `lcd_init()` to 'setup()' where it is cexecute exactly once. Saves 'bool show_bootscreen'. Move the call of 'lcd_custom_bootscreen()' to the begin of 'lcd_bootscreen()'. Move the delays into the related functions. Move the picture loop around 'lcd_kill_screen()' into the function.
This commit is contained in:
@ -715,14 +715,7 @@ void lcd_reset_status() { lcd_setstatusPGM(PSTR(""), -1); }
|
||||
void kill_screen(const char* lcd_msg) {
|
||||
lcd_init();
|
||||
lcd_setalertstatusPGM(lcd_msg);
|
||||
#if ENABLED(DOGLCD)
|
||||
u8g.firstPage();
|
||||
do {
|
||||
lcd_kill_screen();
|
||||
} while (u8g.nextPage());
|
||||
#else
|
||||
lcd_kill_screen();
|
||||
#endif
|
||||
lcd_kill_screen();
|
||||
}
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
|
Reference in New Issue
Block a user