Match select item to encoder direction (#14673)

This commit is contained in:
Marcio Teixeira 2019-07-28 23:02:42 -06:00 committed by Scott Lahteine
parent e5d73f68c8
commit eb7840dabb
2 changed files with 4 additions and 1 deletions

View file

@ -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) {

View file

@ -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)