dsf
Fork of QEI by
Diff: QEI.h
- Revision:
- 1:b9fb662cca1d
- Parent:
- 0:5c2ad81551aa
- Child:
- 2:3753789f4288
--- a/QEI.h Thu Sep 02 16:48:55 2010 +0000 +++ b/QEI.h Tue May 08 01:19:07 2018 +0000 @@ -207,7 +207,8 @@ * @return Number of revolutions which have occured on the index channel. */ int getRevolutions(void); - + + int getState(void); private: /** @@ -235,7 +236,8 @@ int pulsesPerRev_; int prevState_; int currState_; - + int state_; + volatile int pulses_; volatile int revolutions_;