From 523c7eaa6c012668238bdafcdbf1d631088541d5 Mon Sep 17 00:00:00 2001 From: esenapaj Date: Sat, 15 Oct 2016 11:30:41 +0900 Subject: [PATCH] Fix for the PR #4553 (Save bytes for custom chars (Hitachi LCD)) --- Marlin/ultralcd_impl_HD44780.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Marlin/ultralcd_impl_HD44780.h b/Marlin/ultralcd_impl_HD44780.h index 7c0a4c50c..d43f88ea9 100644 --- a/Marlin/ultralcd_impl_HD44780.h +++ b/Marlin/ultralcd_impl_HD44780.h @@ -224,6 +224,16 @@ static void lcd_set_custom_characters( B10001, B01110 }; + static byte uplevel[8] = { + B00100, + B01110, + B11111, + B00100, + B11100, + B00000, + B00000, + B00000 + }; //thanks joris static byte feedrate[8] = { B11100, B10000, @@ -252,16 +262,6 @@ static void lcd_set_custom_characters( lcd.createChar(LCD_STR_CLOCK[0], clock); #if ENABLED(SDSUPPORT) - static byte uplevel[8] = { - B00100, - B01110, - B11111, - B00100, - B11100, - B00000, - B00000, - B00000 - }; //thanks joris static byte refresh[8] = { B00000, B00110, @@ -330,6 +330,8 @@ static void lcd_set_custom_characters( lcd.createChar(LCD_STR_FOLDER[0], folder); #endif + #else + lcd.createChar(LCD_STR_UPLEVEL[0], uplevel); #endif }