Browse Source

Match select item to encoder direction (#14673)

Marcio Teixeira 4 years ago
parent
commit
eb7840dabb

+ 2
- 0
Marlin/src/lcd/HD44780/ultralcd_HD44780.cpp View File

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

+ 2
- 1
Marlin/src/lcd/dogm/ultralcd_DOGM.cpp View File

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

Loading…
Cancel
Save