Browse Source

Use REVERSE_ENCODER_DIRECTION in do_select_screen

Scott Lahteine 5 years ago
parent
commit
3cd9a92dcc
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/lcd/menu/menu.cpp

+ 1
- 1
Marlin/src/lcd/menu/menu.cpp View File

@@ -448,7 +448,7 @@ bool ui_selection; // = false
448 448
 void set_ui_selection(const bool sel) { ui_selection = sel; }
449 449
 void do_select_screen(PGM_P const yes, PGM_P const no, selectFunc_t yesFunc, selectFunc_t noFunc, PGM_P const pref, const char * const string/*=nullptr*/, PGM_P const suff/*=nullptr*/) {
450 450
   if (ui.encoderPosition) {
451
-    ui_selection = int16_t(ui.encoderPosition) > 0;
451
+    ui_selection = (ENCODERBASE) > 0 == int16_t(ui.encoderPosition) > 0;
452 452
     ui.encoderPosition = 0;
453 453
   }
454 454
   const bool got_click = ui.use_click();

Loading…
Cancel
Save