Fixed #elif statement for ARDUINO_ENC_COUNTER

This commit is contained in:
Patrick Goebel 2015-12-07 07:01:11 -08:00
parent 5a4affcfba
commit 56686b53d2
2 changed files with 2 additions and 3 deletions

View File

@ -45,8 +45,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*********************************************************************/
//#define USE_BASE // Enable the base controller code
#undef USE_BASE // Disable the base controller code
//#define USE_BASE // Enable/disable the base controller code
/* Define the motor controller and encoder library you are using */
#ifdef USE_BASE

View File

@ -27,7 +27,7 @@
if (i == LEFT) return encoders.YAxisReset();
else return encoders.XAxisReset();
}
#elif ARDUINO_ENC_COUNTER
#elif defined(ARDUINO_ENC_COUNTER)
volatile long left_enc_pos = 0L;
volatile long right_enc_pos = 0L;
static const int8_t ENC_STATES [] = {0,1,-1,0,-1,0,0,1,1,0,0,-1,0,-1,1,0}; //encoder lookup table