Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of QEI by
Revision 2:3753789f4288, committed 2018-05-08
- Comitter:
- brainliang
- Date:
- Tue May 08 01:49:28 2018 +0000
- Parent:
- 1:b9fb662cca1d
- Commit message:
- sdf
Changed in this revision
QEI.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r b9fb662cca1d -r 3753789f4288 QEI.h --- a/QEI.h Tue May 08 01:19:07 2018 +0000 +++ b/QEI.h Tue May 08 01:49:28 2018 +0000 @@ -209,6 +209,8 @@ int getRevolutions(void); int getState(void); + + volatile int pulses_; private: /** @@ -238,7 +240,7 @@ int currState_; int state_; - volatile int pulses_; + volatile int revolutions_; };