From d2c547c407f72f55a855bc82d30721549d27d42f Mon Sep 17 00:00:00 2001 From: mfeherpataky Date: Mon, 11 Feb 2013 23:25:24 +0100 Subject: [PATCH] Update Marlin/ultralcd_implementation_hitachi_HD44780.h Fix to a minor bug with hardcoded LCD_WIDTH that draws edited values outside of the 16 characters width LCDs. --- Marlin/ultralcd_implementation_hitachi_HD44780.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/ultralcd_implementation_hitachi_HD44780.h b/Marlin/ultralcd_implementation_hitachi_HD44780.h index 58d75bd396..dc25e20189 100644 --- a/Marlin/ultralcd_implementation_hitachi_HD44780.h +++ b/Marlin/ultralcd_implementation_hitachi_HD44780.h @@ -366,7 +366,7 @@ void lcd_implementation_drawedit(const char* pstr, char* value) lcd.setCursor(1, 1); lcd_printPGM(pstr); lcd.print(':'); - lcd.setCursor(19 - strlen(value), 1); + lcd.setCursor(LCD_WIDTH -1 - strlen(value), 1); lcd.print(value); } static void lcd_implementation_drawmenu_sdfile_selected(uint8_t row, const char* pstr, const char* filename, char* longFilename)