Przeglądaj źródła

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.
mfeherpataky 12 lat temu
rodzic
commit
d2c547c407

+ 1
- 1
Marlin/ultralcd_implementation_hitachi_HD44780.h Wyświetl plik

366
     lcd.setCursor(1, 1);
366
     lcd.setCursor(1, 1);
367
     lcd_printPGM(pstr);
367
     lcd_printPGM(pstr);
368
     lcd.print(':');
368
     lcd.print(':');
369
-    lcd.setCursor(19 - strlen(value), 1);
369
+    lcd.setCursor(LCD_WIDTH -1 - strlen(value), 1);
370
     lcd.print(value);
370
     lcd.print(value);
371
 }
371
 }
372
 static void lcd_implementation_drawmenu_sdfile_selected(uint8_t row, const char* pstr, const char* filename, char* longFilename)
372
 static void lcd_implementation_drawmenu_sdfile_selected(uint8_t row, const char* pstr, const char* filename, char* longFilename)

Ładowanie…
Anuluj
Zapisz