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 RotaryEncoder by
Revision 1:8000eddbf4aa, committed 2010-12-19
- Comitter:
- shintamainjp
- Date:
- Sun Dec 19 05:11:09 2010 +0000
- Parent:
- 0:6537b3b709b6
- Child:
- 2:f368dbb9b43c
- Commit message:
Changed in this revision
| RotaryEncoder.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/RotaryEncoder.cpp Sun Dec 19 05:03:45 2010 +0000
+++ b/RotaryEncoder.cpp Sun Dec 19 05:11:09 2010 +0000
@@ -56,7 +56,7 @@
code = (code << 2) + (((pin1.read() << 1) | (pin2.read() << 0)) & 3);
code &= 15;
- switch (i) {
+ switch (code) {
case 0x7:
if (min < val) {
val--;
