Browse Source

Match select item to encoder direction (#14673)

pull/1/head
Marcio Teixeira 5 years ago
committed by Scott Lahteine
parent
commit
eb7840dabb
  1. 2
      Marlin/src/lcd/HD44780/ultralcd_HD44780.cpp
  2. 3
      Marlin/src/lcd/dogm/ultralcd_DOGM.cpp

2
Marlin/src/lcd/HD44780/ultralcd_HD44780.cpp

@ -1024,6 +1024,8 @@ void MarlinUI::draw_status_screen() {
}
void draw_edit_screen(PGM_P const pstr, const char* const value/*=nullptr*/) {
ui.encoder_direction_normal();
lcd_moveto(0, 1);
lcd_put_u8str_P(pstr);
if (value != nullptr) {

3
Marlin/src/lcd/dogm/ultralcd_DOGM.cpp

@ -400,8 +400,9 @@ void MarlinUI::clear_lcd() { } // Automatically cleared by Picture Loop
}
void draw_edit_screen(PGM_P const pstr, const char* const value/*=nullptr*/) {
const uint8_t labellen = utf8_strlen_P(pstr), vallen = utf8_strlen(value);
ui.encoder_direction_normal();
const uint8_t labellen = utf8_strlen_P(pstr), vallen = utf8_strlen(value);
bool extra_row = labellen > LCD_WIDTH - 2 - vallen;
#if ENABLED(USE_BIG_EDIT_FONT)

Loading…
Cancel
Save