Buggy bois / Mbed 2 deprecated UDITTEST

Dependencies:   mbed

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;