Fixed #elif statement for ARDUINO_ENC_COUNTER

This commit is contained in:
Patrick Goebel 2015-12-07 07:18:41 -08:00
parent 9c272e8244
commit 646b3234aa

View File

@ -27,7 +27,7 @@
if (i == LEFT) return encoders.YAxisReset(); if (i == LEFT) return encoders.YAxisReset();
else return encoders.XAxisReset(); else return encoders.XAxisReset();
} }
#elif ARDUINO_ENC_COUNTER #elif defined(ARDUINO_ENC_COUNTER)
volatile long left_enc_pos = 0L; volatile long left_enc_pos = 0L;
volatile long right_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 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