Quadrature encoder interface library.

Dependents:   PreHeater-Rev2

Fork of QEI by Aaron Berk

Revision:
2:d811f926cf4a
Parent:
1:aea205976bf8
--- a/QEI.cpp	Tue Jul 28 18:57:19 2015 +0000
+++ b/QEI.cpp	Wed Jul 29 04:39:57 2015 +0000
@@ -141,8 +141,9 @@
     revolutions_  = 0;
     pulsesPerRev_ = pulsesPerRev;
     encoding_     = encoding;
-channelA_.mode(intRes);
-channelB_.mode(intRes);
+    channelA_.mode(intRes);
+    channelB_.mode(intRes);
+
     //Workout what the current state is.
     int chanA = channelA_.read();
     int chanB = channelB_.read();