Browse Source

Match select item to encoder direction (#14673)

Marcio Teixeira 6 years ago
parent
commit
eb7840dabb

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

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

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

400
   }
400
   }
401
 
401
 
402
   void draw_edit_screen(PGM_P const pstr, const char* const value/*=nullptr*/) {
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
     bool extra_row = labellen > LCD_WIDTH - 2 - vallen;
406
     bool extra_row = labellen > LCD_WIDTH - 2 - vallen;
406
 
407
 
407
     #if ENABLED(USE_BIG_EDIT_FONT)
408
     #if ENABLED(USE_BIG_EDIT_FONT)

Loading…
Cancel
Save