Browse Source

Fixed bug that makes ulticontroller knob backwards introduced Feb 28 2013 by Robert.

Bug introduced in version 6beb42cdf6.
Robert did a good job of simplifying but messed up this chunk of code.

Looking at working version: 839bef6d5d
it seems there is no case where encrot3 should be defined as 2
because if ULTICONTROLLER is defined then NEWPANEL is also defined.
pull/1/head
George Roberts 11 years ago
parent
commit
595580556c
  1. 7
      Marlin/ultralcd_implementation_hitachi_HD44780.h

7
Marlin/ultralcd_implementation_hitachi_HD44780.h

@ -128,17 +128,10 @@ extern volatile uint16_t buttons; //an extended version of the last checked but
// These values are independent of which pins are used for EN_A and EN_B indications
// The rotary encoder part is also independent to the chipset used for the LCD
#if defined(EN_A) && defined(EN_B)
#ifndef ULTIMAKERCONTROLLER
#define encrot0 0
#define encrot1 2
#define encrot2 3
#define encrot3 1
#else
#define encrot0 0
#define encrot1 1
#define encrot2 3
#define encrot3 2
#endif
#endif
#endif //ULTIPANEL

Loading…
Cancel
Save