Skip to content

Commit

Permalink
Merge pull request #5022 from esenapaj/Fix-for-the-PR-#4553
Browse files Browse the repository at this point in the history
Fix for the PR #4553 (Save bytes for custom chars (Hitachi LCD))
  • Loading branch information
thinkyhead authored Oct 22, 2016
2 parents 8b967a9 + 523c7ea commit 4830823
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Marlin/ultralcd_impl_HD44780.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 4830823

Please sign in to comment.