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.
Dependencies: mbed
Diff: QEI/QEI.cpp
- Revision:
- 3:01b5e80d842d
- Parent:
- 2:730ccfbf08d5
--- a/QEI/QEI.cpp Sun Mar 03 00:55:10 2019 +0000 +++ b/QEI/QEI.cpp Sat Mar 09 14:27:48 2019 +0000 @@ -161,7 +161,7 @@ } //Index is optional. if (index != NC) { - index_.rise(callback(this, &QEI::index)); + index_.rise(callback(this, &QEI::encode)); } } @@ -188,6 +188,7 @@ int QEI::getRevolutions(void) { return revolutions_; + } // +-------------+ @@ -270,6 +271,7 @@ if (change == 0) { change = -1; + } pulses_ -= change;