From 6e4a7e2dcba4c2b92f94ebaede0b711c1aa4bdd6 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 14 Feb 2018 05:08:06 -0600 Subject: [PATCH] Init lcd message string programmatically --- Marlin/Marlin_main.cpp | 1 + Marlin/ultralcd.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 2f70544f9..69b6a0ef4 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -13781,6 +13781,7 @@ void setup() { #endif lcd_init(); + LCD_MESSAGEPGM(WELCOME_MSG); #if ENABLED(SHOW_BOOTSCREEN) lcd_bootscreen(); diff --git a/Marlin/ultralcd.cpp b/Marlin/ultralcd.cpp index 9f28ff452..775de8b60 100644 --- a/Marlin/ultralcd.cpp +++ b/Marlin/ultralcd.cpp @@ -90,7 +90,7 @@ uint8_t lcd_status_update_delay = 1, // First update one loop delayed #define MAX_MESSAGE_LENGTH CHARSIZE * (LCD_WIDTH) #endif -char lcd_status_message[MAX_MESSAGE_LENGTH + 1] = WELCOME_MSG; +char lcd_status_message[MAX_MESSAGE_LENGTH + 1]; #if ENABLED(SCROLL_LONG_FILENAMES) uint8_t filename_scroll_pos, filename_scroll_max, filename_scroll_hash;