Browse Source

Init LCD welcome message programmatically

Scott Lahteine 7 years ago
parent
commit
93c0198b2d
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      Marlin/src/Marlin.cpp
  2. 1
    1
      Marlin/src/lcd/ultralcd.cpp

+ 1
- 0
Marlin/src/Marlin.cpp View File

834
   #endif
834
   #endif
835
 
835
 
836
   lcd_init();
836
   lcd_init();
837
+  LCD_MESSAGEPGM(WELCOME_MSG);
837
 
838
 
838
   #if ENABLED(SHOW_BOOTSCREEN)
839
   #if ENABLED(SHOW_BOOTSCREEN)
839
     lcd_bootscreen();
840
     lcd_bootscreen();

+ 1
- 1
Marlin/src/lcd/ultralcd.cpp View File

98
   #define MAX_MESSAGE_LENGTH CHARSIZE * (LCD_WIDTH)
98
   #define MAX_MESSAGE_LENGTH CHARSIZE * (LCD_WIDTH)
99
 #endif
99
 #endif
100
 
100
 
101
-char lcd_status_message[MAX_MESSAGE_LENGTH + 1] = WELCOME_MSG;
101
+char lcd_status_message[MAX_MESSAGE_LENGTH + 1];
102
 
102
 
103
 #if ENABLED(SCROLL_LONG_FILENAMES)
103
 #if ENABLED(SCROLL_LONG_FILENAMES)
104
   uint8_t filename_scroll_pos, filename_scroll_max, filename_scroll_hash;
104
   uint8_t filename_scroll_pos, filename_scroll_max, filename_scroll_hash;

Loading…
Cancel
Save